1. 程式人生 > >ubuntu安裝chrome driver

ubuntu安裝chrome driver

鏈接 html exec class linux64 sta inux -s creat

首先下載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