| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ | 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ | 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 // Test methods that perform actions on Chrome. These methods only affect Chrome | 10 // Test methods that perform actions on Chrome. These methods only affect Chrome |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Open a new incognito tab via the tools menu. | 22 // Open a new incognito tab via the tools menu. |
| 23 + (void)openNewIncognitoTab; | 23 + (void)openNewIncognitoTab; |
| 24 | 24 |
| 25 // Reloads the page. Does not wait until reload finishes. | 25 // Reloads the page. Does not wait until reload finishes. |
| 26 + (void)reload; | 26 + (void)reload; |
| 27 | 27 |
| 28 // Opens the share menu by tapping on the share button. | 28 // Opens the share menu by tapping on the share button. |
| 29 // Requires having a tab opened. | 29 // Requires having a tab opened. |
| 30 + (void)openShareMenu; | 30 + (void)openShareMenu; |
| 31 | 31 |
| 32 // Swipes up on the current web view, hiding the toolbar if it is present and |
| 33 // hideable. It attempts to swipe to the bottom of the page in the web view, but |
| 34 // if the toolbar disappears it can prevent it from making all the way to the |
| 35 // bottom. Induces a GREYAssert if no web view is present. |
| 36 + (void)swipeUpOnWebView; |
| 37 |
| 38 // Swipes down on the current web view, showing the toolbar if it is hidden and |
| 39 // able to be shown. Induces a GREYAssert if no web view is present. |
| 40 + (void)swipeDownOnWebView; |
| 41 |
| 32 @end | 42 @end |
| 33 | 43 |
| 34 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ | 44 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| OLD | NEW |