remoteDr {seleniumPipes} | R Documentation |
Create a remote driver
Description
remoteDr
: Create a remote Driver object
Usage
remoteDr(remoteServerAddr = "http://localhost", port = 4444L,
browserName = "firefox", version = "", platform = "ANY",
javascript = TRUE, nativeEvents = TRUE, extraCapabilities = list(),
path = "wd/hub", newSession = TRUE)
Arguments
remoteServerAddr |
Object of class |
port |
Object of class |
browserName |
Object of class |
version |
Object of class |
platform |
Object of class |
javascript |
Object of class |
nativeEvents |
Object of class |
extraCapabilities |
A list containing any os/platform/driver specific arguments. |
path |
Path on the server side to issue webdriver calls to. Normally use the default value. |
newSession |
Logical value whether to start an instance of the browser. If TRUE a browser will be opened using |
Value
An object of class "rDriver" is returned. This is a remote Driver object that is used in many of the remote driver specific functions. Many functions that take a remote driver object as input also return the remote driver object. This allows chaining of commands. See the examples for chaining in action.
Examples
## Not run:
# assume a server is available at the default location.
remDr <- remoteDr()
remDR %>% go("http://www.google.com") %>%
findElement("name", "q") %>%
elementSendKeys("R project", key = "enter")
# close our browser
remDr %>% deleteSession
## End(Not run)