首页 > 系统服务 > 详细

在Ubuntu上安装Chrome Driver和Firefox Driver

时间:2017-02-04 19:59:13      阅读:341      评论:0      收藏:0      [点我收藏+]

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

链接:

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

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

  • Install Unzip

sudo apt-get install unzip

  • Assuming you’re running a 64-bit OS, download the latest version of chromedriver from their website

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

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

  • Make the file you downloaded executable, and move it to /usr/local/share

chmod +x ~/Downloads/chromedriver

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

  • Also, 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

在Ubuntu上安装Chrome Driver和Firefox Driver

原文:http://www.cnblogs.com/woniu123/p/6366102.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!