chrome driver environment problem

An error is reported when running automated tests: This version of ChromeDriver only supports Chrome version 95 Current browser version is 97.0.4692.99

Because the chrome installed on your local machine does not match the chrome driver you downloaded, the version 95 chrome driver is downloaded

Solution: Download the chrome driver version corresponding to the chrome browser installed on your machine

The first step, open your Google browser, enter chrome://version/ in the address bar
insert image description here

You can see that my Google Chrome version is: Google Chrome 97.0.4692.99

The second step is to download the driver of the corresponding version of Google Chrome. The download address is http://chromedriver.storage.googleapis.com/index.html
insert image description here
to download the corresponding chrome drvier.
– Note: For example, if the browser version is 97.0.4692.99, the same version cannot be found in the chromedriver version, just select 97.0.4692.71, and click to select the computer system to download.

The third step, after decompression, replace chromedriver.exe to the following two paths:

C:\Program Files (x86)\Google\Chrome\Application
python installation path:
E:\Python

Re-run again, it's OK_

Guess you like

Origin blog.csdn.net/weixin_45422695/article/details/123229725