美文网首页程序员
Ubuntu下安装ChromeDriver

Ubuntu下安装ChromeDriver

作者: 毅巍奇诚 | 来源:发表于2018-11-15 19:56 被阅读0次

安装chrome,已安装可以跳过

sudo apt-get install libxss1 libappindicator1 libindicator7

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.debsudo dpkg -i google-chrome*.deb

sudo apt-getinstall -f

安装vxfb

sudo apt-getinstall xvfb

安装chrome driver:

先google网站上下载,按你下载的chrome版本选择对应的

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

然后执行

chmod +x chromedriver

sudo mv -f 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

相关文章

网友评论

    本文标题:Ubuntu下安装ChromeDriver

    本文链接:https://www.haomeiwen.com/subject/jcrufqtx.html