selenium Chromediver

 

 

Here we use wget to fetch the version number of the latest release, then plug the version into another wget invocation in order to fetch the chromedriver build itself:

1
2
LATEST=$(wget -q -O - http://chromedriver.storage.googleapis.com/LATEST_RELEASE)
wget http://chromedriver.storage.googleapis.com/$LATEST/chromedriver_linux64.zip

Symlink chromedriver into /usr/local/bin/ so it’s in your PATH and available system-wide:

1
unzip chromedriver_linux64.zip && sudo ln -s $PWD/chromedriver /usr/local/bin/chromedriver

posted on 2016-03-23 15:57  alex.shu  阅读(201)  评论(0编辑  收藏  举报

导航