Description Usage Arguments Details Value Detail Examples
Defunct. Please use rsDriver
1 2 |
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 convience. 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.