How to update Chromedriver on Ubuntu?

老子叫甜甜 提交于 2020-01-13 19:59:27

问题


I want to update Chromedriver to the latest version.

How can I do this on the command line?


回答1:


Download chromedriver from https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip

Unzip it and put it in location /usr/bin/chromedriver and change its permission to 755 using chmod.




回答2:


This will download the latest version, and install it to the correct location, with the correct permissions.

version=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
wget -qP "/tmp/" "https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"
sudo unzip -o /tmp/chromedriver_linux64.zip -d /usr/bin

The permissions should be 755 by default, but if they aren't, you can run:

sudo chmod 755 /usr/bin/chromedriver

If you want a specific version, see the index page, or the website.




回答3:


$ wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
$ sudo mv chromedriver /usr/bin/chromedriver
$ sudo chown root:root /usr/bin/chromedriver
$ sudo chmod +x /usr/bin/chromedriver


来源:https://stackoverflow.com/questions/48649230/how-to-update-chromedriver-on-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!