I am using RSelenium
via docker
and the standalone-firefox
image v 3.11.0
. Also, I am using R v 3.4.4
on Windows 10 (64-bit)
.
I am facing a peculiar issue, happening arbitrarily it seems. Here is my code:
# In the Docker Terminal
$ docker run -d -p 4445:4444 selenium/standalone-firefox:3.11.0
# In R
require(RSelenium)
require(XML)
remDr <- RSelenium::remoteDriver(remoteServerAddr = "192.168.99.100", port = 4445L)
remDr$open()
remDr$navigate("https://www.betvictor.com/")
Sys.sleep(1)
remDr$screenshot(display = TRUE)
Yielding the following error:
Selenium message:Failed to decode response from marionette
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: '29208ebb0e68', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.89-boot2docker', java.version: '1.8.0_162'
Driver info: driver.version: unknown
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
class: org.openqa.selenium.WebDriverException
Further Details: run errorDetails method
I did some research on the topic:
- It is indicated here that using older versions of Firefox, e.g.
2.53.0
, or using Chrome should solve the issue. - Here a similar issue is discussed and it seems that using Selnium 3.4 or greater might solve that issue.
However, I tried using standalone-chrome:3.11.0
but remDr$open()
then yields Selenium message:Unable to create new service: GeckoDriverService
.
And as for 2., to quote the (RSelenium
) documentation: "[The package] Provides a set of R bindings for the Selenium 2.0 WebDriver", which might explain why that error arose in the first place.
Is there a way to solve that issue, e.g. is it possible to update the RSelenium
package such that it uses a more recent version of Selenium
?