Selenium cannot call Chrome v54 Open Web page (ubuntu16.04 Pro test)

Source: Internet
Author: User

This is due to the chromedriver issue, Chromedriver does not match the version of Chrome. The following is the corresponding matching version (ref:http://blog.csdn.net/huilan_same/article/details/51896672)# Chromedriver--version
Starting Chromedriver (v2.7.236843) on port 9515
Chromedriver version supported versions of Chrome
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

Report:
All chromedriver can be downloaded from the link below:

Http://chromedriver.storage.googleapis.com/index.html
So you can download the corresponding version of the Chromedriver, and then directly overwrite the system is used in the Chromedriver, you can. # CP ~/downloads/tmp/chromedriver/usr/bin/-F


In addition, using Python+selenium to drive Chrome, the page appears small yellow bar error "You are using an unsupported command line tag:--ignore-certificate-errors. Stability and security will decrease. " Workaround (ref:https://my.oschina.net/rasine/blog/552560):

Using the option parameter, the problem can be resolved

Options = Webdriver. Chromeoptions ()

Options.add_experimental_option ("Excludeswitches", ["ignore-certificate-errors"])

Browser = Webdriver. Chrome (chrome_options=options)

ref:http://blog.csdn.net/huilan_same/article/details/51896672
https://my.oschina.net/rasine/blog/552560

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.