| 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_H_ | 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ |
| 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ | 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ |
| 7 | 7 |
| 8 #import <EarlGrey/EarlGrey.h> | 8 #import <EarlGrey/EarlGrey.h> |
| 9 | 9 |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or | 47 // ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or |
| 48 // a timeout. | 48 // a timeout. |
| 49 + (void)loadURL:(GURL)URL; | 49 + (void)loadURL:(GURL)URL; |
| 50 | 50 |
| 51 // Waits for the page to finish loading or a timeout. | 51 // Waits for the page to finish loading or a timeout. |
| 52 + (void)waitForPageToFinishLoading; | 52 + (void)waitForPageToFinishLoading; |
| 53 | 53 |
| 54 // Taps html element with |elementID| in the current web view. | 54 // Taps html element with |elementID| in the current web view. |
| 55 + (void)tapWebViewElementWithID:(NSString*)elementID; | 55 + (void)tapWebViewElementWithID:(NSString*)elementID; |
| 56 | 56 |
| 57 // Waits for a static html view containing |text|. If the condition is not met |
| 58 // before a timeout, there is a GREYAssert. |
| 59 + (void)waitForStaticHTMLViewContainingText:(NSString*)text; |
| 60 |
| 61 // Waits for there to be no static html view, or a static html view that does |
| 62 // not contain |text|. If the condition is not met before a timeout, there is a |
| 63 // GREYAssert. |
| 64 + (void)waitForStaticHTMLViewNotContainingText:(NSString*)text; |
| 65 |
| 66 // Waits for a Chrome error page. If it is not found, a GREYAssert is induced. |
| 67 + (void)waitForErrorPage; |
| 57 @end | 68 @end |
| 58 | 69 |
| 59 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ | 70 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ |
| OLD | NEW |