Index: tools/perf/page_sets/key_desktop_move_cases.py |
diff --git a/tools/perf/page_sets/key_desktop_move_cases.py b/tools/perf/page_sets/key_desktop_move_cases.py |
index c322ddf93907748eb5160655a5119061c58755f1..95a48d794f8fa839b064b9ac00c91a35e35a37c7 100644 |
--- a/tools/perf/page_sets/key_desktop_move_cases.py |
+++ b/tools/perf/page_sets/key_desktop_move_cases.py |
@@ -51,13 +51,11 @@ class GmailMouseScrollPage(KeyDesktopMoveCasesPage): |
'window.__scrollableElementForTelemetry != null') |
scrollbar_x, start_y, end_y = self._CalculateScrollBarRatios(action_runner) |
- interaction = action_runner.BeginGestureInteraction( |
- 'DragAction') |
- action_runner.DragPage(left_start_ratio=scrollbar_x, |
- top_start_ratio=start_y, left_end_ratio=scrollbar_x, |
- top_end_ratio=end_y, speed_in_pixels_per_second=100, |
- element_function='window.__scrollableElementForTelemetry') |
- interaction.End() |
+ with action_runner.CreateGestureInteraction('DragAction'): |
+ action_runner.DragPage(left_start_ratio=scrollbar_x, |
+ top_start_ratio=start_y, left_end_ratio=scrollbar_x, |
+ top_end_ratio=end_y, speed_in_pixels_per_second=100, |
+ element_function='window.__scrollableElementForTelemetry') |
def _CalculateScrollBarRatios(self, action_runner): |
viewport_height = float(action_runner.EvaluateJavaScript( |