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

Unified Diff: telemetry/telemetry/internal/actions/scroll_to_element.py

Issue 2876843002: Simulate interactivity boost for simulated user input events
Patch Set: Created 3 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
Index: telemetry/telemetry/internal/actions/scroll_to_element.py
diff --git a/telemetry/telemetry/internal/actions/scroll_to_element.py b/telemetry/telemetry/internal/actions/scroll_to_element.py
index e6c8cd1885987c12a9d9c8de37f2636ad06d7d59..dca39a6369678c66b32b6ad8a0cdd11fd7ae6164 100644
--- a/telemetry/telemetry/internal/actions/scroll_to_element.py
+++ b/telemetry/telemetry/internal/actions/scroll_to_element.py
@@ -45,6 +45,9 @@ class ScrollToElementAction(page_action.PageAction):
assert (self._selector or self._element_function), (
'Must have either selector or element function')
+ def SimulatesUserInput(self):
+ return True
+
def WillRunAction(self, tab):
if self._selector:
element = js_template.Render(
« no previous file with comments | « telemetry/telemetry/internal/actions/scroll_bounce.py ('k') | telemetry/telemetry/internal/actions/swipe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698