標(biāo)簽:Python開發(fā) Deepin
1. chromedriver配置
- Install Unzip
sudo apt-get install unzip
- download the latest version of chromedriver from their website
wget -N http://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip
- unzip chromedriver
unzip chromedriver_linux64.zip
- Make the file you downloaded executable, and move it to /usr/local/share
chmod +x chromedriver
sudo mv -f chromedriver /usr/local/share/chromedriver
- create symlinks to the chromedriver. Cucumber would look for the drivers in /usr/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
- 驗證是否安裝成功
chromedriver
成功如下圖所示:
chromedriver
2. PhantomJS配置
wget -N https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
解壓下載好的phantomjs-2.1.1-linux-x86_64.tar.bz2
將解壓后的文件(夾)移動到/usr/local/share
sudo mv phantomjs-2.1.1-linux-x86_64/ /usr/local/share
- 創(chuàng)建phantomjs軟鏈接
sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
- 驗證是否安裝成功
phantomjs --version
成功如下圖所示:
phantomjs