1 year ago
#365957
ixodid
What are the steps required to get geckodriver working with RSelenium on Ubuntu?
This is a follow up to an earlier question which provided an explanation as to why an older version of Firefox would work with RSelenium (v1.77) selenium/standalone-firefox:2.53.1
whereas a newer version breaks, selenium/standalone-firefox:latest
.
My understanding is that the solution lies in getting the correct version of GeckoDriver.
Looking here and following these instructions I now have geckodriver living at /usr/local/bin/
However my script still fails at webElem <- remDr$findElement(using = "class", "percent")
with the error
Error in .self$value[[1]] : subscript out of bounds
.
What further steps are required to get RSelenium working with selenium/standalone-firefox:latest?
R Script from earlier question
library("tidyverse")
library("RSelenium")
# A Selenium server has to be running
# Works with: docker run -d -p 4445:4444 selenium/standalone-firefox:2.53.1
# Fails with: docker run -d -p 4445:4444 selenium/standalone-firefox:latest
remDr <- remoteDriver(port = 4445L)
remDr$open()
remDr$navigate("https://www.alternabank.ca/everyday-banking/high-interest-esavings")
webElem <- remDr$findElement(using = "class", "percent")
tmp <- webElem$getElementText()
remDr$close()
r
geckodriver
rselenium
0 Answers
Your Answer