scroll_to

The command to scroll to the given location.

Syntax

py.scroll_to(x: int, y: int) -> Pylenium

Usage

correct usage
# scroll down 500px
py.scroll_to(0, 500)

Arguments

  • x (int): The number of pixels to scroll horizontally

  • y (int): The number of pixels to scroll vertically

Yields

  • Pylenium - so you can chain another command

Last updated