Selenium2+python Automation 61-chrome Browser (chromedriver) "Reprint"

Source: Internet
Author: User

Objective

SELENIUM2 boot Chrome is required to install the driver package, but different versions of the Chrome browser version number, the corresponding driver file version number is not the same, if the version number does not match, it is impossible to start up.

First, Chrome is having problems

1. If you start the Chrome browser, the following interface, unable to open the URL, then first congratulate you, stepped on the pit, the next content may be helpful to you

>># Coding:utf-8
>>from Selenium Import Webdriver

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

Second, view the version number

1. View Chrome version number, Settings > About, find out the version number is 57.0

2. Check the Chromedriver.exe version number, double-click on this file to be able to find out the version number is V2.9

3. It is clear that the Chromedriver version number is too low, so you can find a more advanced version: V2.24

Third, Chromedriver

1. Make sure that the Chromedriver.exe file is in the path path, where I put the Python root directory (Python root has been configured to path), will not be configured to see

Selenium2+python Automation 1-Environment construction

First article

2. Ensure that the driver file name is Chromedriver.exe, and if the name is followed by a version number, change the file name.

3.Chrome version v57.0+chromedriverv2.24

Four, the version of the matching table
Version of Chrome supported by the Chromedriver 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

Chromedriver version download Daquan: http://chromedriver.storage.googleapis.com/index.html

Selenium2+python Automation 61-chrome Browser (chromedriver) "Reprint"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.