Skip to content

Commit 9b7c1fb

Browse files
committed
[py]: Remove deprecated ActionChains.scroll(...)
1 parent 91ef191 commit 9b7c1fb

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

py/selenium/webdriver/common/action_chains.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -381,28 +381,6 @@ def scroll_from_origin(self, scroll_origin: ScrollOrigin, delta_x: int, delta_y:
381381
)
382382
return self
383383

384-
def scroll(
385-
self, x: int, y: int, delta_x: int, delta_y: int, duration: int = 0, origin: str = "viewport"
386-
) -> "ActionChains":
387-
"""Sends wheel scroll information to the browser to be processed.
388-
389-
:Args:
390-
- x: starting X coordinate
391-
- y: starting Y coordinate
392-
- delta_x: the distance the mouse will scroll on the x axis
393-
- delta_y: the distance the mouse will scroll on the y axis
394-
"""
395-
warnings.warn(
396-
"scroll() has been deprecated, please use scroll_to_element(), scroll_by_amount() or scroll_from_origin().",
397-
DeprecationWarning,
398-
stacklevel=2,
399-
)
400-
401-
self.w3c_actions.wheel_action.scroll(
402-
x=x, y=y, delta_x=delta_x, delta_y=delta_y, duration=duration, origin=origin
403-
)
404-
return self
405-
406384
# Context manager so ActionChains can be used in a 'with .. as' statements.
407385

408386
def __enter__(self) -> "ActionChains":

0 commit comments

Comments
 (0)