seleniumPipes (version 0.3.7)

remoteDr: Create a remote driver


remoteDr: Create a remote Driver object


remoteDr(remoteServerAddr = "http://localhost", port = 4444L, browserName = "firefox", version = "", platform = "ANY", javascript = TRUE, nativeEvents = TRUE, extraCapabilities = list(), path = "wd/hub", newSession = TRUE)


Object of class "character", giving the ip of the remote server. Defaults to localhost
Object of class "integer", the port of the remote server on which to connect
Object of class "character". The name of the browser being used; choices include chrome|firefox|internet explorer|iphone|htmlunit. Defaults to firefox.
Object of class "character". The browser version, or the empty string if unknown.
Object of class "character". A key specifying which platform the browser is running on. This value should be one of WINDOWS|XP|VISTA|MAC|LINUX|UNIX. When requesting a new session, the client may specify "ANY" to indicate any available platform may be used.
Object of class "logical". Whether the session supports executing user supplied JavaScript in the context of the current page.
Object of class "logical". Whether the session supports native events. n WebDriver advanced user interactions are provided by either simulating the Javascript events directly (i.e. synthetic events) or by letting the browser generate the Javascript events (i.e. native events). Native events simulate the user interactions better.
A list containing any os/platform/driver specific arguments.
Path on the server side to issue webdriver calls to. Normally use the default value.
Logical value whether to start an instance of the browser. If TRUE a browser will be opened using newSession


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.


Run this code
## Not run: 
# # assume a server is available at the default location.
# remDr <- remoteDr()
# remDR %>% go("") %>%
#  findElement("name", "q") %>%
#  elementSendKeys("R project", key = "enter")
# # close our browser
# remDr %>% deleteSession
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace