OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 // Test methods that perform actions on Chrome. These methods only affect Chrome |
| 11 // using the UI with Earl Grey. |
| 12 @interface ChromeEarlGreyUI : NSObject |
| 13 |
| 14 // Makes the toolbar visible by swiping downward, if necessary. Then taps on |
| 15 // the Tools menu button. At least one tab needs to be open and visible when |
| 16 // calling this method. |
| 17 + (void)openToolsMenu; |
| 18 |
| 19 // Open a new tab via the tools menu. |
| 20 + (void)openNewTab; |
| 21 |
| 22 // Open a new incognito tab via the tools menu. |
| 23 + (void)openNewIncognitoTab; |
| 24 |
| 25 // Reloads the page. Does not wait until reload finishes. |
| 26 + (void)reload; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
OLD | NEW |