From 63bbf101300be849c200d555a02a8b853338a41f Mon Sep 17 00:00:00 2001 From: "dmy.berezovskyi" Date: Thu, 13 Mar 2025 00:26:23 +0200 Subject: [PATCH] added ability to scroll down and up by coordinates --- src/screens/element_interactor.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/screens/element_interactor.py b/src/screens/element_interactor.py index e81539c..ecc2815 100644 --- a/src/screens/element_interactor.py +++ b/src/screens/element_interactor.py @@ -157,13 +157,10 @@ def scroll_by_coordinates( start_y: Y coordinate to start scrolling from. end_x: X coordinate to scroll to. end_y: Y coordinate to scroll to. - duration: Defines speed of scroll action. Default is 600 ms. - - Returns: - Self instance. + duration: Defines speed of scroll action. Default is 700 ms. """ if duration is None: - duration = 1000 + duration = 700 touch_input = PointerInput(interaction.POINTER_TOUCH, "touch") actions = ActionChains(self.driver)