CentOS7 Chrome and Chromedriver installation configuration

Source: Internet
Author: User

1, install the latest version of the Chrome browser in the CentOS7

Yum installhttps://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm After the completion of the Internet in applications can find Google browser 2, chromedriver download Download http://chromedriver.storage.googleapis.com/index.html Note: If you want to use both, make sure the versions are the same, otherwise you will get an error when selenium uses the chrome driver Selenium.common.exceptions.WebDriverException:Message:unknown Error:Runtime.executionContextCreated has invalid ' context ': {"Auxdata": {"Frameid": "43472.1", "IsDefault": true}, "id ": 1," name ":" "," origin ":"://"}
The first step of the installation of Chrome is the latest, so to ensure that the download Chromedriver is also the latest, where the latest is not necessarily the largest version number, in the Chromedriver download site has a file latest realease, It specifies the current version number, is currently 2.33, after the download chromedriver file placed under the specified path, you can configure environment variables, I currently placed it under the/usr/local/bin path
: https://chrome.richardlloyd.org.uk/
http://blog.csdn.net/c08762/article/details/70339587

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.