简体   繁体   中英

Can no longer run RSelenium Chrome Driver

I'll start by saying I have ran into this issue many times in the past, and all that's been required is updating my Google Chrome version and then updating the chromever = param in rsDriver() . These are no longer working for me.

I've tried the solutions in many posts (this one in particular) but I still can't get it to work.

Here are some details:

  • Computer/browser/R info:

    • Chrome Version: 89.0.4389.90
    • Mac Version: 10.15.4
    • RStudio Version: 1.3.959
  • For the longest time, I've been able to use chromever = "87.0.4280.20" even though my browser wasn't on that version. I could open up a remote driver with remDrall <- rsDriver(port = 4445L, browser = "chrome", chromever = "87.0.4280.20")

  • When I try this now, I get an error saying

    Selenium message:session not created: This version of ChromeDriver only supports Chrome version 87 Current browser version is 89.0.4389.90 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
  • This prompted me to try updating my ChromeDriver if it was stuck on 87. I updated it by manually downloading and moving to /usr/local/bin/chromedriver as well as updating via brew upgrade chromedriver . As far as I know it worked, testing via:

    • ls /usr/local/Caskroom/chromedriver/ gives me 89.0.4389.23
    • /usr/local/bin/chromedriver starts a chromedriver session with 89.0.4389.23
  • I've tried using chromever = "89.0.4389.23" but I get an unknown server-side error. I know my chrome version is 89.0.4389.90, but that version isn't available to use in rsDriver .

I'm really not sure where to go from here. I just don't get why it says my ChromeDriver only supports Chrome version 87 when I clearly have it updated to 89. Could it be that my rsDriver function is still picking up some old version of ChromeDriver? Can I direct it specifically to the one in /usr/local/bin/ ?

Any thoughts on what I can try next?

Try to replace the chromedriver.exe file on you local directory with the updated version from here:

https://chromedriver.storage.googleapis.com/index.html?path=89.0.4389.23/

I ran into a similar problem last week and was able to get the command working again by making the following change to the "chromever" option:

Previous version that stopped working:

rsDriver(chromever = "87.0.4280.88", browser = "chrome", extraCapabilities = eCaps)

New version that does work:

rsDriver(chromever = "89.0.4389.23", browser = "chrome", extraCapabilities = eCaps)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM