Chromium Code Reviews| Index: ios/chrome/test/earl_grey/chrome_earl_grey.h |
| diff --git a/ios/chrome/test/earl_grey/chrome_earl_grey.h b/ios/chrome/test/earl_grey/chrome_earl_grey.h |
| index 16897431cf2753c7a8da55d4bf6d5dcc372eadee..49043e1305b1e95eb6256b2a93a85bf97257acb8 100644 |
| --- a/ios/chrome/test/earl_grey/chrome_earl_grey.h |
| +++ b/ios/chrome/test/earl_grey/chrome_earl_grey.h |
| @@ -54,6 +54,15 @@ id ExecuteJavaScript(NSString* javascript, |
| // Taps html element with |elementID| in the current web view. |
| + (void)tapWebViewElementWithID:(NSString*)elementID; |
| +// Waits for a static html view containing |text| if |present| is YES. If |
| +// |present| is NO, then it waits for there to be either no static html view, |
| +// or a static html view that does not contain |text|. If the condition is not |
| +// met, there is a GREYAssert. |
| ++ (void)waitForStaticHTMLViewContainingText:(NSString*)text |
| + isTextPresent:(BOOL)present; |
|
baxley
2017/03/31 20:59:22
Let me know what you think about this API. The pre
Eugene But (OOO till 7-30)
2017/03/31 22:19:17
It does not sounds like a canonical Objective-C na
baxley
2017/04/03 18:10:41
Done.
|
| + |
| +// Waits for a Chrome error page. If it is not found, a GREYAssert is induced. |
| ++ (void)waitForErrorPage; |
| @end |
| #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ |