Chrome driver stopped working for Chrome browser version 54 with the latest Chrome driver 2.24

前端 未结 4 1963
星月不相逢
星月不相逢 2020-12-16 14:35

Today the latest build for chrome browser version got installed automatically which is now 54.0.2840.71 m (64-bit). I am unable to drive the browser using the latest Chrome

相关标签:
4条回答
  • 2020-12-16 14:45

    You could get the latest chromedriver (2.25) from: https://sites.google.com/a/chromium.org/chromedriver/downloads

    That has fixed the problem for me.

    0 讨论(0)
  • 2020-12-16 14:48

    I have the exact same problem. The only solution I know of (for now) is to revert back to the previous version of Chrome before the update... if possible. Thankfully I had one machine that had the chrome.exe version I needed as the updated VMs had blown it away.

    This helped me: https://productforums.google.com/forum/#!msg/chrome/UFSYuIr1-80/DivHmlqPDAAJ

    However I did not have "old_chrome.exe" in the folder. I had the old version directory but the old corresponding exe was gone. If I had not found it on an un-updated PC I would have been screwed.

    Edit: I also turned off all Chrome updates so I can control them from now on: https://stackoverflow.com/a/31939624/2246511

    0 讨论(0)
  • 2020-12-16 14:50

    The whole chain needs to be aliged to version which support what they control: Selenium -> Selenium Chrome Driver -> ChromeDriver -> Chrome.

    Regarding Chrome Driver:

    See the other answers for traditional installation.

    For Apple / MacOS with Brew, you need to:

    1. Open chrome, go to Chrome -> About Chrome -> check if there is a prompt to restart chrome to start using the new version.
    2. Upgrade ChromeDriver through brew:

      brew cask upgrade chromedriver
      

    The version of chromedriver is nowadays aligned with Chrome, so Chrome 80 comes with ChromeDriver 80. It seems to appear in Brew very soon after Chrome.

    Regarding Selenium ChromeDriver: Don't forget to upgrade to the latest version of selenium-chrome-driver (along with the rest of Selenium deps) which knows how to operate the latest ChromeDriver.

    0 讨论(0)
  • 2020-12-16 15:06

    Hi I have fixed the issue. Chrome version 54 and below are compatible with the Chrome driver 2.24 and the Chrome versions above 54 need Chrome driver 2.27.

    0 讨论(0)
提交回复
热议问题