安装
1、写入yum源
vim /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
2、安装
yum -y install google-chrome-stable --nogpgcheck
代码驱动和本地版本对应表
本质是 java 、python 通过 驱动调用本地的chrome程序,所以要匹配一下本地chrome和驱动的版本。
ChromeDriver Version | Chrome Version |
---|---|
83.0.4103.39 | 83 |
83.0.4103.14 | 83 |
81.0.4044.138 | 81 |
81.0.4044.69 | 81 |
81.0.4044.20 | 81 |
80.0.3987.106 | 80 |
80.0.3987.16 | 80 |
79.0.3945.36 | 79 |
79.0.3945.16 | 79 |
78.0.3904.105 | 78 |
78.0.3904.70 | 78 |
78.0.3904.11 | 78 |
77.0.3865.40 | 77 |
77.0.3865.10 | 77 |
76.0.3809.126 | 76 |
76.0.3809.68 | 76 |
76.0.3809.25 | 76 |
76.0.3809.12 | 76 |
75.0.3770.90 | 75 |
75.0.3770.8 | 75 |
74.0.3729.6 | 74 |
73.0.3683.68 | 73 |
72.0.3626.69 | 72 |
2.46 | 71-73 |
2.46 | 71-73 |
2.45 | 70-72 |
2.44 | 69-71 |
2.43 | 69-71 |
2.42 | 68-70 |
2.41 | 67-69 |
2.40 | 66-68 |
2.39 | 66-68 |
2.38 | 65-67 |
2.37 | 64-66 |
2.36 | 63-65 |
2.35 | 62-64 |