Start Selenium Server
selenium(
port = 4567L,
version = "latest",
chromever = "latest",
geckover = "latest",
iedrver = NULL,
phantomver = "2.1.1",
check = TRUE,
verbose = TRUE,
retcommand = FALSE,
...
)
Returns a list with named elements process
, output
,
error
, stop
, and log
.
process
is the object from calling process
.
output
and error
are the functions reading the latest
messages from "stdout" and "stderr" since the last call whereas log
is the function that reads all messages.
Lastly, stop
call the kill
method in
process
to the kill the process
.
Port to run on
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")
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.
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.
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.
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.
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.
If TRUE, include status messages (if any)
If TRUE return only the command that would be passed
to process
pass additional options to the driver
if (FALSE) {
selServ <- selenium()
selServ$output()
selServ$stop()
}
Run the code above in your browser using DataLab