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