Provides a set of R bindings for the 'Selenium 2.0 WebDriver' (see < https://seleniumhq.github.io/docs/wd.html> for more information) using the 'JsonWireProtocol' (see < https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol> for more information). 'Selenium 2.0 WebDriver' allows driving a web browser natively as a user would either locally or on a remote machine using the Selenium server it marks a leap forward in terms of web browser automation. Selenium automates web browsers (commonly referred to as browsers). Using RSelenium you can automate browsers locally or remotely.
|CRAN version||Travis build status||SauceTests||Coverage|
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'). If you require the development version you will need the devtools package. If necessary (install.packages("devtools")) and run:
To get started using
RSelenium you can look at the introduction vignette located
RSelenium is installed or run
or the basic vignette can be viewed on Rpubs.
There is a second vignette dealing with running RSelenium on different browsers/OS locally and remotely which can be viewed at RSelenium: 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 RSelenium: Headless browsing..
Use RSelenium to test your Shiny Apps.
Read the introductory tutorial on Rpubs.
user <- "rselenium0"pass <- "*******************************"port <- 80ip <- 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)
require(RSelenium)user <- "johnharrison"pass <- "*******************"port <- 80ip <- 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)
seleniumPipes seleniumPipes is a lightweight implementation of the w3c webdriver specification. It has been built utilising xml2, httr and magrittr so provides an alternative for users who are familiar with piping.
webdriver A client for the 'WebDriver' 'API'. It allows driving a (probably headless) web browser, and can be used to test web applications, including 'Shiny' apps. In theory it works with any 'WebDriver' implementation, but it was only tested with 'PhantomJS'.
rwebdriver R bindings to the Webdriver API
rdom Render and parse the DOM from R via 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.
@fieldand inline docstrings for methods
usingargument of the findElement and findElements method from the remoteDriver class.
usingargument of the findChildElement and findChildElements method from the webElement class.