All Projects → ropensci → Rselenium

ropensci / Rselenium

An R client for Selenium Remote WebDriver

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Rselenium

checkers
⛔ ARCHIVED ⛔ Automated checking of best practices for research compendia ✔️
Stars: ✭ 53 (-80.94%)
Mutual labels:  rstats, r-package
getCRUCLdata
CRU CL v. 2.0 Climatology Client for R
Stars: ✭ 17 (-93.88%)
Mutual labels:  rstats, r-package
rredlist
IUCN Red List API Client
Stars: ✭ 31 (-88.85%)
Mutual labels:  rstats, r-package
atata-kendoui
A set of Atata components for Kendo UI
Stars: ✭ 17 (-93.88%)
Mutual labels:  webdriver, selenium
roadoi
Use Unpaywall with R
Stars: ✭ 60 (-78.42%)
Mutual labels:  rstats, r-package
schtools
Schloss Lab Tools for Reproducible Microbiome Research 💩
Stars: ✭ 22 (-92.09%)
Mutual labels:  rstats, r-package
worrms
World Register of Marine Species R client
Stars: ✭ 13 (-95.32%)
Mutual labels:  rstats, r-package
paleobioDB
R interface to the Paleobiology Database
Stars: ✭ 36 (-87.05%)
Mutual labels:  rstats, r-package
sahagin-java
Sahagin generates highly readable Selenium/Appium test report from your test code.
Stars: ✭ 26 (-90.65%)
Mutual labels:  webdriver, selenium
mutant
mutation testing for R
Stars: ✭ 13 (-95.32%)
Mutual labels:  rstats, r-package
kaggler
🏁 API client for Kaggle
Stars: ✭ 50 (-82.01%)
Mutual labels:  rstats, r-package
Htmlelements
Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Stars: ✭ 258 (-7.19%)
Mutual labels:  selenium, webdriver
miner
R package for controlling Minecraft via API
Stars: ✭ 74 (-73.38%)
Mutual labels:  rstats, r-package
wikitaxa
taxonomy data from Wikipedia/Wikidata/Wikispecies
Stars: ✭ 16 (-94.24%)
Mutual labels:  rstats, r-package
rdryad
R client for Dryad web services
Stars: ✭ 25 (-91.01%)
Mutual labels:  rstats, r-package
rsnps
Wrapper to a number of SNP web APIs
Stars: ✭ 44 (-84.17%)
Mutual labels:  rstats, r-package
python-linkedin-bot
No description or website provided.
Stars: ✭ 25 (-91.01%)
Mutual labels:  webdriver, selenium
charles
Java web crawling library
Stars: ✭ 31 (-88.85%)
Mutual labels:  webdriver, selenium
dotwhisker
Dot-and-Whisker Plots of Regression Results
Stars: ✭ 51 (-81.65%)
Mutual labels:  rstats, r-package
bcmaps
An R package of map layers for British Columbia
Stars: ✭ 53 (-80.94%)
Mutual labels:  rstats, r-package

RSelenium

Build Status codecov

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.

Install

To install RSelenium from CRAN, run:

install.packages("RSelenium")

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 /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. Finally, you can read all about running a headless browser or running a normal browser on a headless server at Headless Browsing.

Summary of Vignettes

  1. Basics
  2. Driving OS/Browsers Local and Remote
  3. Testing Shiny Apps
  4. Headless Browsing
  5. Docker
  6. Internet Explorer
  7. Orange County R Users Group Webinar

Test Shiny Apps

Use RSelenium to test your Shiny Apps. Read the introductory tutorial here.

Use Sauce Labs and BrowserStack

Sauce Labs

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
)

BrowserStack

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
)

Related Work

  • seleniumPipes: 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.

License

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.


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].