How can I execute existing selenium script with ChromeDriver 73 and Chrome version 74 as the backward compatibility was dropped?
The Current Releases section of ChromeDriver - WebDriver for Chrome clearly mentions the following:
- If you are using Chrome version 75, please download ChromeDriver 75.0.3770.8
- If you are using Chrome version 74, please download ChromeDriver 74.0.3729.6
- If you are using Chrome version 73, please download ChromeDriver 73.0.3683.68
- For older version of Chrome, please see this discussion for the version of ChromeDriver that supports it.
Solution
If you are using Chrome v74.x you have to use ChromeDriver v74.0.3729.6 as a mandatory measure.
ChromeDriver dropping backward compatibility
John Chen (Owner - chromedriver) recently have confirmed that:
Backward compatibility was dropped from ChromeDriver for a couple of reasons:
- It adds complexity to the code, and is expensive to maintain.
- It requires an infrastructure to test each build of ChromeDriver against multiple versions of Chrome. There is no such requirement anywhere else inside Chrome, and it became increasingly difficult to convince our build team to maintain such an infrastructure just for ChromeDriver.
I understand this creates difficulty for some of our users, but unfortunately it has become impossible for us to keep supporting the backward compatibility.
Snapshot of Email from John Chen
Reference
You can find a relevant detailed discussion in:
Browser version and the driver version for the browser should be in sync.
You can solve the issue by downloading the latest driver from the below link.
From chrome site: LinkYou will need to repeat the task whenever chrome gets an update.
Please download the latest chrome driver version 74.0.3729.6 from below link https://chromedriver.storage.googleapis.com/index.html?path=74.0.3729.6/)