Learn R Programming

wdman (version 0.2.2)

selenium: Start Selenium Server

Description

Start Selenium Server

Usage

selenium(port = 4567L, version = "latest", chromever = "latest", geckover = "latest", iedrver = NULL, phantomver = "2.1.1", check = TRUE, verbose = TRUE, retcommand = FALSE, ...)

Arguments

port
Port to run on
version
what version of Selenium Server to run. Default = "latest" which runs the most recent version. To see other version currently sourced run binman::list_versions("seleniumserver")
chromever
what version of Chrome driver to run. Default = "latest" which runs the most recent version. To see other version currently sourced run binman::list_versions("chromedriver"), A value of NULL excludes adding the chrome browser to Selenium Server.
geckover
what version of Gecko driver to run. Default = "latest" which runs the most recent version. To see other version currently sourced run binman::list_versions("geckodriver"), A value of NULL excludes adding the firefox browser to Selenium Server.
iedrver
what version of IEDriverServer to run. Default = "latest" which runs the most recent version. To see other version currently sourced run binman::list_versions("iedriverserver"), A value of NULL excludes adding the internet explorer browser to Selenium Server. NOTE this functionality is Windows OS only.
phantomver
what version of PhantomJS to run. Default = "2.2.1" which runs the most recent stable version. To see other version currently sourced run binman::list_versions("phantomjs"), A value of NULL excludes adding the PhantomJS headless browser to Selenium Server.
check
If TRUE check the versions of selenium available and the versions of associated drivers (chromever, geckover, phantomver, iedrver). If new versions are available they will be downloaded.
verbose
If TRUE, include status messages (if any)
retcommand
If TRUE return only the command that would be passed to spawn_process
...
pass additional options to the driver

Value

Returns a list with named elements process, output, error and stop. process is the output from calling spawn_process output, error and stop are functions calling process_read, process_read with "stderr" pipe and process_kill respectively on process.

Examples

Run this code
## Not run: 
# selServ <- selenium()
# selServ$output()
# selServ$stop()
# ## End(Not run)

Run the code above in your browser using DataLab