Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium 2.44 incompatible with Firefox 36.0.4 #42

Closed
cpsievert opened this issue Mar 26, 2015 · 6 comments
Closed

Selenium 2.44 incompatible with Firefox 36.0.4 #42

cpsievert opened this issue Mar 26, 2015 · 6 comments

Comments

@cpsievert
Copy link
Contributor

I see:

> library(RSelenium)
Loading required package: RCurl
Loading required package: bitops
Loading required package: RJSONIO
Loading required package: XML
> startServer()
> remDr <- remoteDriver(browserName = "firefox")
> remDr$open()
[1] "Connecting to remote server"
Error:   Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     class: org.openqa.selenium.firefox.NotConnectedException
> remDr$getStatus()
$build
$build$version
[1] "2.44.0"

$build$revision
[1] "76d78cf"

$build$time
[1] "2014-10-23 20:02:37"


$os
$os$name
[1] "Mac OS X"

$os$arch
[1] "x86_64"

$os$version
[1] "10.10.2"


$java
$java$version
[1] "1.8.0_25"


> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.2 (Yosemite)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RSelenium_1.3.5 XML_3.98-1.1    RJSONIO_1.3-0   RCurl_1.95-4.5 
[5] bitops_1.0-6    devtools_1.7.0 

loaded via a namespace (and not attached):
[1] caTools_1.17.1 tools_3.1.3   
> system("/Applications/Firefox.app/Contents/MacOS/firefox -v")
Mozilla Firefox 36.0.4
@cpsievert
Copy link
Contributor Author

Updating selenium from 2.44 to 2.45 seems to have fixed the problem.

@cpsievert cpsievert changed the title Can't open Firefox with remote driver Selenium 2.44 incompatible with Firefox 36.0.4 Mar 26, 2015
@PavoDive
Copy link

Hi @cpsievert . I'm facing this very same issue. I was told in StackOverflow that one of the options I had was downgrading from my current firefox version (37.0.1) to 34.0.5. However, I'd like to give a try to updating selenium. I'd appreciate if you can guide me regarding how to do it (I'm using RSelenium, and it seems to be up to date (build is 2.44, though). Thanks

@cpsievert
Copy link
Contributor Author

checkForServer() downloads selenium and places it in system.file("bin", package = "RSelenium") so something like this should do the trick:

unlink(system.file("bin", package = "RSelenium"), recursive = T)
checkForServer()

@PavoDive
Copy link

It worked like a charm! Thanks

@johndharrison
Copy link
Member

Thanks @cpsievert

checkForServer(update = TRUE)

should also work I guess. Might be a good idea to clean up as you do however also 👍.

@cjack
Copy link

cjack commented Dec 3, 2015

Hi, I got the same error when running in the ubuntu (Ubuntu 14.04.3 LTS, Mozilla Firefox 42.0,java version "1.8.0_66",R version 3.2.2 (2015-08-14) -- "Fire Safety", RSelenium 2.48.0"), however, if I run the same code in OS X EI Captian version 10.11.1, everything works fine(the Firefox, java, R's versions are the same). Meanwhile, the advices above still cannot solve my issue. Can you help me? Thank you.

> library(RSelenium)
Loading required package: RCurl
Loading required package: bitops
Loading required package: RJSONIO
Loading required package: XML
> unlink(system.file("bin", package = "RSelenium"), recursive = T)
> checkForServer()
[1] "DOWNLOADING STANDALONE SELENIUM SERVER. THIS MAY TAKE SEVERAL MINUTES"
trying URL 'http://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.0.jar'
Content type 'application/java-archive' length 30782545 bytes (29.4 MB)
==================================================
downloaded 29.4 MB

> startServer()
> remDr <- remoteDriver(browserName = "firefox")
> remDr$open()
[1] "Connecting to remote server"
Error:   Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     class: org.openqa.selenium.firefox.NotConnectedException
> remDr$getStatus()
$build
$build$version
[1] "2.48.0"

$build$revision
[1] "b7b081a"

$build$time
[1] "2015-10-07 15:48:56"


$os
$os$name
[1] "Linux"

$os$arch
[1] "amd64"

$os$version
[1] "3.13.0-48-generic"


$java
$java$version
[1] "1.8.0_66"

When I ran on Mac

> library(RSelenium)
Loading required package: RCurl
Loading required package: bitops
Loading required package: RJSONIO
Loading required package: XML
> startServer()
> remDr <- remoteDriver(browserName = "firefox")
>
> remDr$open()
[1] "Connecting to remote server"
$applicationCacheEnabled
[1] TRUE

$rotatable
[1] FALSE

$handlesAlerts
[1] TRUE

$databaseEnabled
[1] TRUE

$version
[1] "42.0"

$platform
[1] "MAC"

$nativeEvents
[1] FALSE

$acceptSslCerts
[1] TRUE

$webdriver.remote.sessionid
[1] "a7196eee-b75b-46c2-bdb3-97933aa88c06"

$webStorageEnabled
[1] TRUE

$locationContextEnabled
[1] TRUE

$browserName
[1] "firefox"

$takesScreenshot
[1] TRUE

$javascriptEnabled
[1] TRUE

$cssSelectorsEnabled
[1] TRUE

$id
[1] "a7196eee-b75b-46c2-bdb3-97933aa88c06"

> remDr$getStatus()
$build
$build$version
[1] "2.48.0"

$build$revision
[1] "b7b081a"

$build$time
[1] "2015-10-07 15:48:56"


$os
$os$name
[1] "Mac OS X"

$os$arch
[1] "x86_64"

$os$version
[1] "10.11.1"


$java
$java$version
[1] "1.8.0_65"

On Mac

R 
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.0.0 (64-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants