Skip to content

Commit

Permalink
fix: when 0 is given for handleKeyboardInput (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Oct 28, 2023
1 parent beb413e commit 58ebe8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebDriverAgentLib/Commands/FBCustomCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ + (NSString *)timeZone
+ (id<FBResponsePayload>)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;
Expand Down

0 comments on commit 58ebe8e

Please sign in to comment.