在Ubuntu上安装Chrome Driver和Firefox Driver

时间:2017-02-04 19:59:40   收藏:0   阅读:1289

首先下载Chrome Driver(Firefox Driver的安装与该步骤相同)

链接:

http://chromedriver.storage.googleapis.com/index.html

接下来在控制台(terminal)上操作一下红色字体的指令:

sudo apt-get install unzip

wget -N http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip -P ~/Downloads

unzip ~/Downloads/chromedriver_linux64.zip -d ~/Downloads

chmod +x ~/Downloads/chromedriver

sudo mv -f ~/Downloads/chromedriver /usr/local/share/chromedriver

sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!