Skip to content

Commit

Permalink
chore: Remove the hardcoded keyboard wait delay from handleKeys (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Oct 5, 2023
1 parent 7b2c1e5 commit f043d67
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 f043d67

Please sign in to comment.