From 58ebe8eb52966963ee30a5c066beb3bf9fed3161 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 28 Oct 2023 15:02:37 -0700 Subject: [PATCH] fix: when 0 is given for handleKeyboardInput (#798) --- WebDriverAgentLib/Commands/FBCustomCommands.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebDriverAgentLib/Commands/FBCustomCommands.m b/WebDriverAgentLib/Commands/FBCustomCommands.m index 934cdf73f..21b67173f 100644 --- a/WebDriverAgentLib/Commands/FBCustomCommands.m +++ b/WebDriverAgentLib/Commands/FBCustomCommands.m @@ -551,7 +551,7 @@ + (NSString *)timeZone + (id)handleKeyboardInput:(FBRouteRequest *)request { FBElementCache *elementCache = request.session.elementCache; - BOOL hasElement = nil != request.parameters[@"uuid"]; + BOOL hasElement = ![request.parameters[@"uuid"] isEqual:@"0"]; XCUIElement *destination = hasElement ? [elementCache elementForUUID:(NSString *)request.parameters[@"uuid"]] : request.session.activeApplication;