首页 > 代码库 > 在Ubuntu上安装Chrome Driver和Firefox Driver
在Ubuntu上安装Chrome Driver和Firefox Driver
首先下载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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。