Start the standalone server.
Defunct. Please use rsDriver
startServer(dir = NULL, args = NULL, javaargs = NULL, log = TRUE, ...)
dir |
A directory in which the binary is to be placed. |
args |
Additional arguments to be passed to Selenium Server. |
javaargs |
arguments passed to JVM as opposed to the Selenium Server jar. |
log |
Logical value indicating whether to write a log file to the directory containing the Selenium Server binary. |
... |
arguments passed |
startServer
A utility function to start the standalone server. Return two functions
see values.
Returns a list containing two functions. The 'getpid' function returns the process id of the started Selenium binary. The 'stop' function stops the started Selenium server using the process id.
By default the binary is assumed to be in the RSelenium package /bin directory. The log argument is for convenience. Setting it to FALSE and stipulating args = c("-log /user/etc/somePath/somefile.log") allows a custom location. Using log = TRUE sets the location to a file named sellog.txt in the directory containing the Selenium Server binary.
## Not run: selServ <- startServer() # example of commandline passing selServ <- startServer( args = c("-port 4455"), log = FALSE, invisible = FALSE ) remDr <- remoteDriver(browserName = "chrome", port = 4455) remDr$open() # get the process id of the selenium binary selServ$getpid() # stop the selenium binary selServ$stop() ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.