selenium_server {selenium} | R Documentation |
Download and start the Selenium server.
Description
Downloads the latest release of Selenium Server, and then runs it as a background process. You must have Java installed for this command to work.
Usage
selenium_server(
version = "latest",
selenium_manager = TRUE,
interactive = TRUE,
verbose = TRUE,
temp = TRUE,
path = NULL,
echo_cmd = FALSE,
extra_args = c()
)
Arguments
version |
The version of Selenium Server to download and run. By default, the latest major or minor release is used. |
selenium_manager |
Whether to enable Selenium Manager, which will
automatically download any missing drivers. Defaults to |
interactive |
By default, if you don't have a version downloaded, you
will be prompted to confirm that you want to download it, and the function
will error if |
verbose |
Passed into |
temp |
Whether to use a temporary directory to download the Selenium
Server |
path |
The path where the downloaded Selenium Server |
echo_cmd |
Passed into processx::process$new(). |
extra_args |
A character vector of extra arguments to pass into the Selenium Server call. |
Value
A processx::process object. Call <process>$kill()
to stop the
server.
See Also
The package website for more ways to start the Selenium server.
Examples
server <- selenium_server(interactive = FALSE)
server$kill()