ropensci / RSelenium

An R client for Selenium Remote WebDriver
https://docs.ropensci.org/RSelenium
341 stars 81 forks source link

Driver not working in Chrome 89.0.4389.82 on macOS #245

Open dmurdoch opened 3 years ago

dmurdoch commented 3 years ago

Operating System

macOS Catalina 10.15.7

Selenium Server version (selenium-server-standalone-3.0.1.jar etc.)

4.0.0-alpha-2

Browser version (firefox 50.1.0, chrome 54.0.2840.100 (64-bit) etc.)

Chrome 89.0.4389.82

Other driver version (chromedriver 2.27, geckodriver v0.11.1, iedriver x64_3.0.0, PhantomJS 2.1.1 etc.)

Expected behaviour

Chrome should open.

Actual behaviour

I get these errors:

Selenium message:Timed out waiting for driver server to start.
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10'
System info: host: 'djmair3.local', ip: 'fe80:0:0:0:1c43:f189:7ff2:dc%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_71'
Driver info: driver.version: unknown

Could not open chrome browser.
Client error message:
     Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     Further Details: run errorDetails method
Check server log for further details.
$client
[1] "No sessionInfo. Client browser is mostly likely not opened."

$server
PROCESS 'file1afccaf577b.sh', running, pid 6946.

Steps to reproduce the behaviour

Run

rsDriver(verbose = TRUE, browser="chrome", geckover = NULL,phantomver = NULL)

I see

> binman::list_versions("chromedriver")
$mac64
[1] "87.0.4280.87" "87.0.4280.88" "88.0.4324.27" "88.0.4324.96"
[5] "89.0.4389.23"

but Chrome is 89.0.4389.82, so I need to somehow update my chromedriver versions.

mcemerden commented 3 years ago

I'm having the same issue. I updated Google Chrome yesterday from 87 to 89.0.4389.82. I had no problem running RSelenium for over a year now with the same code, even after updating Chrome, I would just update the chromever argument in rsDriver and it would work. I updated Java and Selenium too to no avail.

My current code is:

driver <- rsDriver(browser=c("chrome"), chromever="89.0.4389.23", port = 4444L)

And here is the error I'm getting, similar to yours:

Selenium message:Timed out waiting for driver server to start. Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10' System info: host: 'xxx', ip: 'xxx', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.5', java.version: '11.0.10' Driver info: driver.version: unknown

Update:

I was able to fix using the steps here

dmurdoch commented 3 years ago

The current workaround I'm using is to delete "/Applications/Google Chrome.app" , then use Time Machine to restore it from before the update (which happened for me on Mar 5). Then I use the previous driver version, and it works for a while, then Chrome updates itself again, and I need to repeat. Hopefully this is short-lived.

dmurdoch commented 3 years ago

I found the same as https://github.com/ropensci/wdman/issues/25 and reported it here: https://github.com/ropensci/binman/issues/7 .

dmurdoch commented 2 years ago

And today I found https://github.com/ropensci/wdman/pull/26, which fixes the issue. Hopefully it will be merged at some point.