Index: ios/chrome/test/earl_grey/chrome_earl_grey_ui.h |
diff --git a/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h b/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h |
index ea7dd86a46c3ba03897d187ac3537215f3c5f347..09dabe5a4464bf8ad669dcc505815954d8c2463a 100644 |
--- a/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h |
+++ b/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h |
@@ -5,6 +5,7 @@ |
#ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
#define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
+#import <EarlGrey/EarlGrey.h> |
#import <Foundation/Foundation.h> |
// Test methods that perform actions on Chrome. These methods only affect Chrome |
@@ -21,6 +22,22 @@ |
// calling this method. |
+ (void)openSettingsMenu; |
+// Scrolls to find the button in the Settings menu with the corresponding |
+// |buttonMatcher|, and then taps it. If |buttonMatcher| is not found, or |
+// the Settings menu is not open when this is called there will be a GREYAssert. |
++ (void)tapSettingsMenuButton:(id<GREYMatcher>)buttonMatcher; |
+ |
+// Scrolls to find the button in the Privacy menu with the corresponding |
+// |buttonMatcher|, and then taps it. If |buttonMatcher| is not found, or |
+// the Privacy menu is not open when this is called there will be a GREYAssert. |
++ (void)tapPrivacyMenuButton:(id<GREYMatcher>)buttonMatcher; |
+ |
+// Scrolls to find the button in the Clear Browsing Data menu with the |
+// corresponding |buttonMatcher|, and then taps it. If |buttonMatcher| is |
+// not found, or the Clear Browsing Data menu is not open when this is called |
+// there will be a GREYAssert. |
++ (void)tapClearBrowsingDataMenuButton:(id<GREYMatcher>)buttonMatcher; |
+ |
// Open a new tab via the tools menu. |
+ (void)openNewTab; |