How to download the historical version of Google Chrome and the chromedriver driver

 

For those who are learning puthon, they will definitely encounter a problem about Google Chrome and chromedriver drivers. Some versions cannot find the corresponding chromedriver driver. This problem has troubled me for a long time. I just installed the Linux system today. , keep the record, for later viewing and use, and friends in need can also save it

1. About the download address of the historical version of Google Chrome

I found some links here, you can try

https://www.chromedownloads.net/chrome64linux/    is highly recommended

https://downzen.com/en/windows/google-chrome/versions/

Download older versions of Google Chrome for Windows, Linux and Mac

 

Two, chromedriver driver download address

Google official address

http://chromedriver.storage.googleapis.com/index.html

other address

https://npm.taobao.org/mirrors/chromedriver/

Baidu cloud disk address 1: https://pan.baidu.com/s/1D97klZDkeaM5Y65mRXIJfQ

Baidu cloud disk address 2: https://pan.baidu.com/s/1eSeuA7w     Sharing password: 87pc

3. Comparison between Google version and driver

Chromedriver版本    支持的Chrome版本
v2.43    v69-71
v2.42    v68-70
v2.41    v67-69
v2.40    v66-68
v2.39    v66-68
v2.38    v65-67
v2.37    v64-66
v2.36    v63-65
v2.35    v62-64
v2.34    v61-63
v2.33    v60-62
v2.32    v59-61
v2.31    v58-60
v2.30    v58-60
v2.29    v56-58
v2.28    v55-57
v2.27    v54-56
v2.26    v53-55
v2.25    v53-55
v2.24    v52-54
v2.23    v51-53
v2.22    v49-52
v2.21    v46-50
v2.20    v43-48
v2.19    v43-47
v2.18    v43-46
v2.17    v42-43
v2.13    v42-45
v2.15    v40-43
v2.14    v39-42
v2.13    v38-41
v2.12    v36-40
v2.11    v36-40
v2.10    v33-36
v2.9    v31-34
v2.8    v30-33
v2.7    v30-33
v2.6    v29-32
v2.5    v29-32
v2.4    v29-32

Fourth, the solution to the mismatch between the version of the chrome browser and the driver

1. How to match the browser and driver so that no error will be reported

When using the webdriver of the selenium module to open Google Chrome, I often encounter such an error message:

selenium.common.exceptions.WebDriverException:Message:'chromedriver' excutable need to be in PATH.Please see ....

Solution:

1> Open the chrome browser, enter in the browser address bar: chrome://version/

2> Corresponding to the above browser version, find the corresponding browser driver from the following URL

http://npm.taobao.org/mirrors/chromedriver/

There are two drivers (webdriver) corresponding to the browser version 79.0.3945 above, you can choose one to download:

 5. How to deploy selenium and chromedriver driver under linux

# 1、安装chrome
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

# 2、检查chrome的版本

google-chrome --version

# 3、新建文件夹用来存放驱动

mkdir driver

# 4、安装chromedriver驱动
按照对应的chrome版本下载chromedriver驱动

地址:http://chromedriver.storage.googleapis.com/index.html

wget https://npm.taobao.org/mirrors/chromedriver/96.0.4664.45/chromedriver_linux64.zip

# 5、解压

unzip chromedriver_linux64.zip

# 6、移动到指定位置

mv chromedriver  /usr/bin/chromedriver

# 7、给予执行权限

chmod +x /usr/bin/chromedriver

chmod 777 driver/chromedriver

# 8、代码测试

other problems

1. How to check the Google version without triggering the automatic update of Google Chrome?

Enter chrome://version/ in the address bar of Google Chrome.

Guess you like

Origin blog.csdn.net/weixin_42019349/article/details/130216036