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

Unified Diff: tools/telemetry/telemetry/page/actions/tap.py

Issue 277143003: Add NavigateToPage API for action_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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 | « tools/telemetry/telemetry/page/actions/swipe.py ('k') | tools/telemetry/telemetry/page/actions/wait.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/actions/tap.py
diff --git a/tools/telemetry/telemetry/page/actions/tap.py b/tools/telemetry/telemetry/page/actions/tap.py
index f238359bd4ca43bb3bbd67cc7062d92030cf0ee7..7859eedc784105f787d20def17f22d242b7e4196 100644
--- a/tools/telemetry/telemetry/page/actions/tap.py
+++ b/tools/telemetry/telemetry/page/actions/tap.py
@@ -16,7 +16,7 @@ class TapAction(GestureAction):
def __init__(self, attributes=None):
super(TapAction, self).__init__(attributes)
- def WillRunAction(self, page, tab):
+ def WillRunAction(self, tab):
for js_file in ['gesture_common.js', 'tap.js']:
with open(os.path.join(os.path.dirname(__file__), js_file)) as f:
js = f.read()
@@ -63,7 +63,7 @@ class TapAction(GestureAction):
tab.ExecuteJavaScript('(%s)(function(element) { %s });' %
(element_function, js_cmd))
- def RunGesture(self, page, tab):
+ def RunGesture(self, tab):
left_position_percentage = 0.5
top_position_percentage = 0.5
duration_ms = 50
« no previous file with comments | « tools/telemetry/telemetry/page/actions/swipe.py ('k') | tools/telemetry/telemetry/page/actions/wait.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698