Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: ios/chrome/test/earl_grey/chrome_earl_grey.h

Issue 2784943002: Remove matcher to wait for static HTML view. (Closed)
Patch Set: more better comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698