remoteDr(remoteServerAddr = "http://localhost", port = 4444L, browserName = "firefox", version = "", platform = "ANY", javascript = TRUE, nativeEvents = TRUE, extraCapabilities = list(), path = "wd/hub", newSession = TRUE)
"character"
, giving the ip of the remote server.
Defaults to localhost"integer"
, the port of the remote server on which to connect"character"
. The name of the browser being used;
choices include chrome|firefox|internet explorer|iphone|htmlunit. Defaults to firefox."character"
. The browser version, or the empty string if unknown."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."logical"
. Whether the session supports executing user supplied JavaScript in the context of the current page."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.newSession
remoteDr
: Create a remote Driver object
## 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 ## ---------------------------------------------