View source: R/session-options.R
chromote_options | R Documentation |
chromote_options()
and selenium_options()
return a list of options that
can be passed to the options
argument of selenider_session()
.
chromote_options()
allows you to control the creation of a chromote driver
created using chromote::ChromoteSession$new().
selenium_options()
allows you to control the creation of a selenium driver.
selenium_server_options()
should be passed to the server_options
argument of selenium_options()
, allowing you to control the creation of
the server using selenium::selenium_server()
.
selenium_client_options()
should be passed to the client_options
argument
of selenium_options()
, allowing you to control the creation of a Selenium
client created using
selenium::SeleniumSession$new().
chromote_options(
headless = TRUE,
parent = NULL,
width = 992,
height = 1323,
targetId = NULL,
wait_ = TRUE,
auto_events = NULL
)
selenium_options(
client_options = selenium_client_options(),
server_options = selenium_server_options()
)
selenium_server_options(
version = "latest",
port = 4444L,
selenium_manager = NULL,
verbose = FALSE,
temp = TRUE,
path = NULL,
interactive = FALSE,
echo_cmd = FALSE,
extra_args = c()
)
selenium_client_options(
port = 4444L,
host = "localhost",
verbose = FALSE,
capabilities = NULL,
request_body = NULL,
timeout = 60
)
headless |
Whether to run the browser in headless mode, meaning
that you won't actually be able to see the browser as you control it.
For debugging purposes and interactive use, it is often useful to set
this to |
parent |
The parent chromote session. |
width , height , targetId , wait_ , auto_events |
Passed into chromote::ChromoteSession$new(). |
client_options |
A |
server_options |
A |
version |
The version of Selenium server to use. |
port |
The port number to use. |
selenium_manager , verbose , temp , path , interactive , echo_cmd , extra_args |
Passed into |
host , capabilities , request_body , timeout |
Passed into selenium::SeleniumSession$new(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.