Skip to content

Commit 5e7c097

Browse files
Merge pull request #10 from dmberezovskyii/PPA-0005
added ability to scroll down and up by coordinates
2 parents ddf6862 + 63bbf10 commit 5e7c097

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/screens/element_interactor.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,10 @@ def scroll_by_coordinates(
157157
start_y: Y coordinate to start scrolling from.
158158
end_x: X coordinate to scroll to.
159159
end_y: Y coordinate to scroll to.
160-
duration: Defines speed of scroll action. Default is 600 ms.
161-
162-
Returns:
163-
Self instance.
160+
duration: Defines speed of scroll action. Default is 700 ms.
164161
"""
165162
if duration is None:
166-
duration = 1000
163+
duration = 700
167164

168165
touch_input = PointerInput(interaction.POINTER_TOUCH, "touch")
169166
actions = ActionChains(self.driver)

0 commit comments

Comments
 (0)