This is a set of R Bindings for Selenium 2.0 Remote WebDriver, which you can download from http://selenium-release.storage.googleapis.com/index.html. This binding will not work with the 1.0 version of Selenium.
To install RSelenium
from CRAN, run:
install.packages("RSelenium")
To install the development version from GitHub, run:
# install.packages("remotes")
::install_github("ropensci/RSelenium") remotes
To get started using RSelenium
you can look at the
introduction vignette located in /doc/basics.html
once
RSelenium
is installed or run
vignette("basics", package = "RSelenium")
or the basic vignette can be viewed here.
There is a second vignette dealing with running RSelenium on different browsers/OS locally and remotely which can be viewed at Driving OS/Browsers Local and Remote.
<- "rselenium0"
user <- "*******************************"
pass <- 80
port <- paste0(user, ':', pass, "@ondemand.saucelabs.com")
ip <- "firefox"
browser <- "25"
version <- "OS X 10.9"
platform <- list(
extraCapabilities name = "Test RSelenium",
username = user,
accessKey = pass
)
<- remoteDriver$new(
remDr remoteServerAddr = ip,
port = port,
browserName = browser,
version = version,
platform = platform,
extraCapabilities = extraCapabilities
)
<- "johnharrison"
user <- "*******************"
pass <- 80
port <- paste0(user, ':', pass, "@hub.browserstack.com")
ip <- list(
extraCapabilities "browser" = "IE",
"browser_version" = "7.0",
"os" = "Windows",
"os_version" = "XP",
"browserstack.debug" = "true"
)
<- remoteDriver$new(
remDr remoteServerAddr = ip,
port = port,
extraCapabilities = extraCapabilities
)
webdriver
.Shiny
apps. In theory it works with any ‘WebDriver’
implementation, but it was only tested with ‘PhantomJS’.xml2
, httr
and
magrittr
so provides an alternative for users who are
familiar with piping.The RSelenium package is licensed under the AGPLv3. The help files are licensed under the creative commons attribution, non-commercial, share-alike license CC-NC-SA.
As a summary, the AGPLv3 license requires, attribution, include copyright and license in copies of the software, state changes if you modify the code, and disclose all source code. Details are in the COPYING file.