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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
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
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 |present| is YES. If
58 // |present| is NO, then it waits for there to be either no static html view,
59 // or a static html view that does not contain |text|. If the condition is not
60 // met, there is a GREYAssert.
61 + (void)waitForStaticHTMLViewContainingText:(NSString*)text
62 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.
63
64 // Waits for a Chrome error page. If it is not found, a GREYAssert is induced.
65 + (void)waitForErrorPage;
57 @end 66 @end
58 67
59 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ 68 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698