Questions tagged [rselenium]

The goal of RSelenium is to make it easy to connect to a Selenium Server/ Remote Selenium Server from within R. RSelenium provides R bindings for the Selenium Webdriver API. Selenium is a project focused on automating web browsers. RSelenium allows you to carry out unit testing and regression testing on your webapps and webpages across a range of browser/OS combinations.

The goal of RSelenium is to make it easy to connect to a Selenium Server/ Remote Selenium Server from within R. RSelenium provides R bindings for the Selenium Webdriver API.

Selenium is a project focused on automating web browsers. See http://docs.seleniumhq.org/

RSelenium allows you to carry out unit testing and regression testing on your webapps and webpages across a range of browser/OS combinations. This allows us to integrate from within R testing and manipulation of popular projects such as shiny, sauceLabs.

Selenium Server is a standalone java program which allows you to run HTML test suites in a range of different browsers, plus extra options like reporting.

See vignette for more details- http://cran.r-project.org/web/packages/RSelenium/vignettes/RSelenium-basics.html

714 questions
183
votes
30 answers

session not created: This version of ChromeDriver only supports Chrome version 74 error with ChromeDriver Chrome using Selenium

I'm trying to run RSelenium using the rsDriver function, but when I run rD <- rsDriver() I get a message telling me I need a newer version of Chrome: > rD <- rsDriver() checking Selenium Server versions: BEGIN: PREDOWNLOAD BEGIN: DOWNLOAD BEGIN:…
Matthew Law
  • 2,029
  • 2
  • 7
  • 12
24
votes
5 answers

RSelenium: server signals port is already in use

I'm using the following code in RSelenium to open a browser. After I close the browser, or even close the handler by running remDr$close(), the port is still in use. I have to go to the terminal and manually kill the process so that the same port…
Mohammad
  • 1,213
  • 1
  • 14
  • 30
22
votes
1 answer

Run Selenium parallel test on Azure batch

I am using latest version of R on windows 7. I would like to run many test in parallel using RSelenium so, my question is: What is the recommended way to run many RSelenium tests? Let's say I would like to run 1000 tests and each step takes 1…
Mislav
  • 1,393
  • 10
  • 29
20
votes
2 answers

Execute jQuery function using RSelenium package

I'm trying to automate a process of logging on to a website and performing some process on it, using the RSelenium package. I have been able to login, click on buttons here and there, but I am stuck at executing a jQuery function on the page.…
Patthebug
  • 3,933
  • 8
  • 39
  • 77
19
votes
1 answer

Is it possible to run RSelenium in ShinyApp on the RStudio server?

I faced such an issue: i have Rscript that uses RSelenium to navigate pages, click buttons and collect data. I included this script as a function in my shinyApp. When I run it from my machine everything is as expected: after clicking the button…
16
votes
1 answer

RSelenium with Tor with NEW RSelenium version on Windows

I found this fantastic answer by @jdharrison on how to launch Tor using RSelenium on windows: https://stackoverflow.com/a/39048970/7837376 In the new version of RSelenium, however, startServer() is defunct and its replacement rsDriver() does not…
Neal Barsch
  • 1,781
  • 7
  • 29
16
votes
3 answers

can't execute rsDriver (connection refused)

I can't get anywhere with R selenium. Here's the first step and my output: library(RSelenium) rD <- rsDriver() # checking Selenium Server versions: # BEGIN: PREDOWNLOAD # BEGIN: DOWNLOAD # BEGIN: POSTDOWNLOAD # checking chromedriver versions: # …
Moody_Mudskipper
  • 39,313
  • 10
  • 88
  • 124
16
votes
1 answer

Scrolling page in RSelenium

How can I manually scroll to the bottom (or top) of a page with the RSelenium WebDriver? I have an element that only becomes available when it is visible on the page.
hfisch
  • 1,232
  • 3
  • 20
  • 33
13
votes
2 answers

Using R to add field to online form and scrape resulting javascript created table

I am trying to get R to complete the 'Search by postcode' field on this webpage http://cti.voa.gov.uk/cti/ with predefined text (e.g. BN1 1NA), advance to the next page and scrape the resulting 4 column table, which, depending on the postcode, can…
Chris
  • 895
  • 6
  • 21
13
votes
1 answer

dropdown boxes in RSelenium

How can one interact with dropdown boxes in RSelenium? In particular, I can select the dropdown box using findElement but how does one select an option with it?
Alex
  • 17,745
  • 33
  • 112
  • 182
12
votes
2 answers

How to read an html table using Rselenium?

I'm using Rselenium to navigate to a webpage. The following code is doing so. I haven't provided the url because I'm using the url in a company which needs vpn to connect: RSelenium::startServer() require(RSelenium) remDr <-…
mamal
  • 133
  • 2
  • 5
11
votes
3 answers

scraping asp javascript paginated tables behind search with R

i'm trying to pull the content on https://www.askebsa.dol.gov/epds/default.asp with either rvest or RSelenium but not finding guidance when the javascript page begins with a search box? it'd be great to just get all of this content into a simple…
Anthony Damico
  • 5,100
  • 6
  • 43
  • 71
11
votes
1 answer

Using R to "click" a download file button on a webpage

I am attempting to use this webpage http://volcano.si.edu/search_eruption.cfm to scrape data. There are two drop-down boxes that ask for filters of the data. I do not need filtered data, so I leave those blank and continue on to the next page by…
abet
  • 133
  • 1
  • 7
11
votes
1 answer

Excessive depth in document: XML_PARSE_HUGE option for xml2::read_html() in R

First I would like to apologize for a new question as my profile does not yet allow me to comment on other people's comments especially on two SO posts I've seen. So please bear with this older guy :-) I am trying to read a list of 100 character…
salvu
  • 451
  • 5
  • 14
10
votes
1 answer

Scraping password protected forum in r

I have a problem with logging in in my script. Despite all other good answers that I found on stackoverflow, none of the solutions worked for me. I am scraping a web forum for my PhD research, its URL is http://forum.axishistory.com. The webpage I…
1
2 3
47 48