ropensci / RSelenium

An R client for Selenium Remote WebDriver

Home Page:https://docs.ropensci.org/RSelenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with firefox and geckodriver 0.32.2

fvalenduc opened this issue · comments

With geckodriver 0.32.2, opening firefox doesn't work anymore. This is the very simple code I use:

remDr <- remoteDriver()
nb_tries<-0
is_error<-TRUE

while (nb_tries<2 && is_error) {
nb_tries<-nb_tries+1
try_server<-try(remDr$open(),silent=TRUE)
is_error<-inherits(try_server, "try-error")
Sys.sleep(3)
}

It gives this result:

[1] "Connecting to remote server"

Selenium message:Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'WKS13274', ip: '10.62.2.60', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_332'
Driver info: driver.version: unknown
remote stacktrace:

I tried playing with extraCapabilities without success. Firefox is installed on the standard path and is in the PATH environment variable; but it doesn't work. It worked without problem with geckodriver 0.31.0.
Does anybody have a solution to this problem ?

Thanks in advance,

François Valenduc