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

Unified Diff: ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm

Issue 2752583004: Add helpers to swipe up and down on the current web view.
Patch Set: more typos! 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
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_earl_grey_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm
diff --git a/ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm b/ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm
index 68be6086c5c027c1fc0569fcbd1a7279b953b995..31105abfb9445ba40bb62f4702a3478ab6613884 100644
--- a/ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm
+++ b/ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm
@@ -79,4 +79,18 @@ using testing::kWaitForPageLoadTimeout;
performAction:grey_tap()];
}
++ (void)swipeUpOnWebView {
+ [[EarlGrey
+ selectElementWithMatcher:WebViewScrollView(
+ chrome_test_util::GetCurrentWebState())]
+ performAction:grey_swipeFastInDirection(kGREYDirectionUp)];
+}
+
++ (void)swipeDownOnWebView {
+ [[EarlGrey
+ selectElementWithMatcher:WebViewScrollView(
+ chrome_test_util::GetCurrentWebState())]
+ performAction:grey_swipeFastInDirection(kGREYDirectionDown)];
+}
+
@end
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_earl_grey_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698