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

Unified Diff: tools/telemetry/telemetry/internal/actions/swipe.py

Issue 1428733002: Update telemetry tests to be agnostic to ScrollTopLeftInterop mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/internal/actions/scroll_bounce.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/internal/actions/swipe.py
diff --git a/tools/telemetry/telemetry/internal/actions/swipe.py b/tools/telemetry/telemetry/internal/actions/swipe.py
index b63202bb6a1e2d4e9fced96420aa1540412cfab7..502d0c8205115059a32135186952f560f1b4a1f2 100644
--- a/tools/telemetry/telemetry/internal/actions/swipe.py
+++ b/tools/telemetry/telemetry/internal/actions/swipe.py
@@ -56,7 +56,7 @@ class SwipeAction(page_action.PageAction):
def RunAction(self, tab):
if (self._selector is None and self._text is None and
self._element_function is None):
- self._element_function = 'document.body'
+ self._element_function = 'document.scrollingElement'
code = '''
function(element, info) {
if (!element) {
« no previous file with comments | « tools/telemetry/telemetry/internal/actions/scroll_bounce.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698