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

Unified Diff: tools/telemetry/telemetry/page/action_runner.py

Issue 1492363002: Pass timeout to RepeatableScrollAction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/internal/browser/web_contents.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/action_runner.py
diff --git a/tools/telemetry/telemetry/page/action_runner.py b/tools/telemetry/telemetry/page/action_runner.py
index 805e62d6edffa844d5eb436b539023175bc1c177..d36a6c17d379e3a11f9ae67b520a1dd4238b4e07 100644
--- a/tools/telemetry/telemetry/page/action_runner.py
+++ b/tools/telemetry/telemetry/page/action_runner.py
@@ -362,7 +362,8 @@ class ActionRunner(object):
def RepeatableBrowserDrivenScroll(self, x_scroll_distance_ratio=0.0,
y_scroll_distance_ratio=0.5,
repeat_count=0,
- repeat_delay_ms=250):
+ repeat_delay_ms=250,
+ timeout=60):
"""Perform a browser driven repeatable scroll gesture.
The scroll gesture is driven from the browser, this is useful because the
@@ -381,7 +382,7 @@ class ActionRunner(object):
x_scroll_distance_ratio=x_scroll_distance_ratio,
y_scroll_distance_ratio=y_scroll_distance_ratio,
repeat_count=repeat_count,
- repeat_delay_ms=repeat_delay_ms))
+ repeat_delay_ms=repeat_delay_ms, timeout=timeout))
def ScrollElement(self, selector=None, text=None, element_function=None,
left_start_ratio=0.5, top_start_ratio=0.5,
« no previous file with comments | « tools/telemetry/telemetry/internal/browser/web_contents.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698