Unverified Commit ec3bd9ed authored by Chris Yang's avatar Chris Yang Committed by GitHub

try tap app before apping the element (#90149)

parent 00fe6a39
...@@ -100,6 +100,9 @@ ...@@ -100,6 +100,9 @@
NSPredicate *hittable = [NSPredicate predicateWithFormat:@"exists == YES AND hittable == YES"]; NSPredicate *hittable = [NSPredicate predicateWithFormat:@"exists == YES AND hittable == YES"];
[self expectationForPredicate:hittable evaluatedWithObject:element handler:nil]; [self expectationForPredicate:hittable evaluatedWithObject:element handler:nil];
[self waitForExpectationsWithTimeout:30.0 handler:nil]; [self waitForExpectationsWithTimeout:30.0 handler:nil];
// Sometimes, the element doesn't respond to the tap, it seems an XCUITest bug. Trying tap
// the app first to fix it.
[self.app tap];
[element tap]; [element tap];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment