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.
RSelenium from CRAN, run:
To install the development version from GitHub, run:
# install.packages("devtools") devtools::install_github("ropensci/RSelenium")
To get started using
RSelenium you can look at the introduction vignette located in
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. Finally, you can read all about running a headless browser or running a normal browser on a headless server at Headless Browsing.
RSelenium to test your Shiny Apps. Read the introductory tutorial here.
user <- "rselenium0" pass <- "*******************************" port <- 80 ip <- paste0(user, ':', pass, "@ondemand.saucelabs.com") browser <- "firefox" version <- "25" platform <- "OS X 10.9" extraCapabilities <- list( name = "Test RSelenium", username = user, accessKey = pass ) remDr <- remoteDriver$new( remoteServerAddr = ip, port = port, browserName = browser, version = version, platform = platform, extraCapabilities = extraCapabilities )
user <- "johnharrison" pass <- "*******************" port <- 80 ip <- paste0(user, ':', pass, "@hub.browserstack.com") extraCapabilities <- list( "browser" = "IE", "browser_version" = "7.0", "os" = "Windows", "os_version" = "XP", "browserstack.debug" = "true" ) remDr <- remoteDriver$new( remoteServerAddr = ip, port = port, extraCapabilities = extraCapabilities )
magrittrso provides an alternative for users who are familiar with piping.
Shinyapps. In theory it works with any 'WebDriver' implementation, but it was only tested with 'PhantomJS'.
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.