标签:Python开发 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
成功如下图所示:
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
- 创建phantomjs软链接
sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
- 验证是否安装成功
phantomjs --version
成功如下图所示: