Selenium2+python automation 61-Chrome you are using an unsupported command line flag: --ignore-certificate-errors

foreword

You are using an unsupported command line flag: --ignore-certificate-errors. Stability and security will be reduced

Selenium2 needs to install the driver package to start the Chrome browser, but different Chrome browser version numbers have different version numbers of the corresponding driver files. If the version numbers do not match, it cannot be started.

 

1. Chrome encounters problems

1. If the following interface appears when you start the chrome browser, and the website cannot be opened, then congratulations first, you have stepped on the pit, and the following content may be helpful to you

>># coding:utf-8
>>from selenium import webdriver

>>driver = webdriver.Chrome()
>>driver.get("http://www.cnblogs.com/yoyoketang/")

 

 

2. Check the version number

1. Check the Chrome version number, go to Settings > About, and find out that the version number is 57.0

 

2. Check the version number of chromedriver.exe, double-click the file, and find out that the version number is V2.9

 

3. Obviously the version number of chromedriver is too low, so you can find a more advanced version: V2.24

 

Three, chromedriver

1. Make sure the chromedriver.exe file is in the path path, here I put it in the root directory of Python (the python root directory has been configured to the path), it will not be configured

first time

2. Make sure the driver file name is chromedriver.exe. If the name is followed by a version number, just change the file name.

 

3.Chrome version V57.0+chromedriverv2.24

 

Fourth, each version matching table
chromedriver version Supported Chrome version

v2.29 v56-58
v2.28 v55-57 v2.27
v54-56 v2.26
v53-55 v2.25
v53-55 v2.24
v52-57
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

Download the chromedriver version: http://chromedriver.storage.googleapis.com/index.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325473198&siteId=291194637