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

Unified Diff: chrome/test/chromedriver/client/chromedriver.py

Issue 22263003: [chromedriver] Implement touch down, up, and move commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | « no previous file | chrome/test/chromedriver/client/webelement.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/client/chromedriver.py
diff --git a/chrome/test/chromedriver/client/chromedriver.py b/chrome/test/chromedriver/client/chromedriver.py
index a0fe44a31c9151ce925f548581dddf1ed3aa4692..ac5c478a459d8d90770bf0b1c94d992d7d7c4abe 100644
--- a/chrome/test/chromedriver/client/chromedriver.py
+++ b/chrome/test/chromedriver/client/chromedriver.py
@@ -217,6 +217,15 @@ class ChromeDriver(object):
def MouseDoubleClick(self, button=0):
self.ExecuteCommand(Command.MOUSE_DOUBLE_CLICK, {'button': button})
+ def TouchDown(self, x, y):
+ self.ExecuteCommand(Command.TOUCH_DOWN, {'x': x, 'y': y})
+
+ def TouchUp(self, x, y):
+ self.ExecuteCommand(Command.TOUCH_UP, {'x': x, 'y': y})
+
+ def TouchMove(self, x, y):
+ self.ExecuteCommand(Command.TOUCH_MOVE, {'x': x, 'y': y})
+
def GetCookies(self):
return self.ExecuteCommand(Command.GET_COOKIES)
« no previous file with comments | « no previous file | chrome/test/chromedriver/client/webelement.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698