Index: ios/chrome/browser/web/browsing_egtest.mm |
diff --git a/ios/chrome/browser/web/browsing_egtest.mm b/ios/chrome/browser/web/browsing_egtest.mm |
index d7cbd57734b00bafedfa7a0ca6045e22c40aa1cf..f23a1faa8694ae956f22c22223830f8d112bf06a 100644 |
--- a/ios/chrome/browser/web/browsing_egtest.mm |
+++ b/ios/chrome/browser/web/browsing_egtest.mm |
@@ -129,6 +129,11 @@ id<GREYMatcher> tabWithTitle(const std::string& tab_title) { |
notPartOfOmnibox, nil); |
} |
+// Matcher for a Go button that is interactable. |
+id<GREYMatcher> goButtonMatcher() { |
+ return grey_allOf(grey_accessibilityID(@"Go"), grey_interactable(), nil); |
+} |
+ |
// Tests that page successfully reloads. |
- (void)testReload { |
// Set up test HTTP server responses. |
@@ -621,8 +626,7 @@ id<GREYMatcher> tabWithTitle(const std::string& tab_title) { |
conditionWithName:@"Wait for the keyboard to show up." |
block:^BOOL { |
NSError* error = nil; |
- [[EarlGrey |
- selectElementWithMatcher:grey_accessibilityID(@"Go")] |
+ [[EarlGrey selectElementWithMatcher:goButtonMatcher()] |
assertWithMatcher:grey_notNil() |
error:&error]; |
return (error == nil); |