View source: R/global_actions.R
scroll_to | R Documentation |
scroll_to()
scrolls the page to the specified coordinates.
scroll_by()
scrolls the page by the specified amount.
scroll_to(top = 0, left = 0, session = NULL)
scroll_by(top = 0, left = 0, session = NULL)
top |
The vertical scroll position/offset, in pixels. |
left |
The horizontal scroll position/offset, in pixels. |
session |
A |
Other global actions:
back()
,
current_url()
,
execute_js_fn()
,
get_page_source()
,
open_url()
,
reload()
,
take_screenshot()
session <- selenider_session()
open_url("https://r-project.org")
scroll_to(100, 100)
# Scrolls an additional 100 pixels down
scroll_by(100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.