Skip to content

Commit 58ebe8e

Browse files
authored
fix: when 0 is given for handleKeyboardInput (#798)
1 parent beb413e commit 58ebe8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebDriverAgentLib/Commands/FBCustomCommands.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ + (NSString *)timeZone
551551
+ (id<FBResponsePayload>)handleKeyboardInput:(FBRouteRequest *)request
552552
{
553553
FBElementCache *elementCache = request.session.elementCache;
554-
BOOL hasElement = nil != request.parameters[@"uuid"];
554+
BOOL hasElement = ![request.parameters[@"uuid"] isEqual:@"0"];
555555
XCUIElement *destination = hasElement
556556
? [elementCache elementForUUID:(NSString *)request.parameters[@"uuid"]]
557557
: request.session.activeApplication;

0 commit comments

Comments
 (0)