Skip to content

Commit

Permalink
chore: Remove the hardcoded keyboard wait delay from handleKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Oct 3, 2023
1 parent 7b2c1e5 commit e7d79a5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions WebDriverAgentLib/Commands/FBElementCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,6 @@ + (NSArray *)routes
{
NSString *textToType = [request.arguments[@"value"] componentsJoinedByString:@""];
NSUInteger frequency = [request.arguments[@"frequency"] unsignedIntegerValue] ?: [FBConfiguration maxTypingFrequency];
if (![FBKeyboard waitUntilVisibleForApplication:request.session.activeApplication
timeout:1
error:nil]) {
[FBLogger log:@"The on-screen keyboard seems to not exist. Continuing with typing anyway"];
}
NSError *error;
if (![FBKeyboard typeText:textToType frequency:frequency error:&error]) {
return FBResponseWithStatus([FBCommandStatus invalidElementStateErrorWithMessage:error.description
Expand Down

0 comments on commit e7d79a5

Please sign in to comment.