From e7d79a583cb32a29568e2379be0c04b6d1a036f0 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Tue, 3 Oct 2023 20:02:40 +0200 Subject: [PATCH] chore: Remove the hardcoded keyboard wait delay from handleKeys --- WebDriverAgentLib/Commands/FBElementCommands.m | 5 ----- 1 file changed, 5 deletions(-) diff --git a/WebDriverAgentLib/Commands/FBElementCommands.m b/WebDriverAgentLib/Commands/FBElementCommands.m index adb5f6092..0f163521b 100644 --- a/WebDriverAgentLib/Commands/FBElementCommands.m +++ b/WebDriverAgentLib/Commands/FBElementCommands.m @@ -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