1 To download the browser driver first:
Commonly used are chromedriver and PHANTOMJS.
Chromedirver:https://npm.taobao.org/mirrors/chromedriver
Phantomjs:http://phantomjs.org/download.html
Use Chromedriver to make sure you have a Chrome browser
2 installation
PHANTOMJS:
Unzip the downloaded file (this version is replaced with XXX)
TAR-XVF phantomjs-xxxx.tar.bz2
Move the compression results to where the software should be in the system (the version is replaced with XXX)
sudo mv Phantomjsxxx/usr/local/src/phantomjs
Create a soft connection to the system environment so you can use the PHANTOMJS command.
sudo ln-sf/usr/local/src/phantojs/bin/phantomjs/usr/local/bin/phantomjs
To add a soft connection to execute permissions
sudo chmod u+x,o+x/usr/local/bin/phantomjs
Check the normal use: return to the version information is representative of the normal use
Phantomjs--version
Chromedriver:
Move the downloaded file to the directory where the software should stay:
sudo mv Chromedriver/usr/local/bin/chromedriver
To change user execution permissions:
sudo chmod u+x,o+x/usr/local/bin/chromedriver
Check for normal use:
Chromedriver--version
How to install Chromedriver and PHANTOMJS in Linux environment