scroll_to()
scrolls the page to the specified coordinates.
scroll_by()
scrolls the page by the specified amount.
Arguments
- top
The vertical scroll position/offset, in pixels.
- left
The horizontal scroll position/offset, in pixels.
- session
A
selenider_session
object. If not specified, the global session object (the result ofget_session()
) is used.
See also
Other global actions:
back()
,
current_url()
,
execute_js_fn()
,
get_page_source()
,
open_url()
,
reload()
,
take_screenshot()
Examples
session <- selenider_session()
open_url("https://r-project.org")
scroll_to(100, 100)
# Scrolls an additional 100 pixels down
scroll_by(100)