Ubuntu下如何安装ChromeDriver

 时间:2024-10-13 17:23:16

1、启动Chrome浏览器,验证chorme是否安装正确hxb@omg:~$ which google-chrome/usr/bin/google-chromehxb@omg:~$ google-chrome这时候如果安装正确可以看到系统打开chrome浏览器了

Ubuntu下如何安装ChromeDriver

2、检查系统是否已经安装了ChromeDriver,通过which ChromeDriver命令可以查看,如果安装了就可以找到安装路径hxb@omg:~$ which ChromeDriverhxb@omg:~$没有显示说明系统未安装ChromeDriver

Ubuntu下如何安装ChromeDriverUbuntu下如何安装ChromeDriverUbuntu下如何安装ChromeDriverUbuntu下如何安装ChromeDriverUbuntu下如何安装ChromeDriver

6、在使用python使用 ChromeDriver 可能遇到的问题Can not connect to the Service /usr/bin/google-chrome-stable/usr/bin/python3.6 /home/hxb/taobaokiller/taobaokiller/TaobaoLogin.pyTraceback (most recent call last): File "/home/hxb/taobaokiller/taobaokiller/TaobaoLogin.py", line 26, in <module> driver = webdriver.Chrome(chrome_options=options,executable_path='/usr/bin/google-chrome-stable') File "/home/hxb/.local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__ self.service.start() File "/home/hxb/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 104, in start raise WebDriverException("Can not connect to the Service %s" % self.path)selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /usr/bin/google-chrome-stable

Ubuntu下如何安装ChromeDriver
  • Windows Server 2008 R2 安装MySQL5.6
  • centos7挂载iso搭建本地yum源
  • 如何防治在生姜种植过程中发生病害?
  • 怎样挑选好吃的黄桃?
  • 热门搜索
    日本旅游景点 阆中旅游攻略 九龙山旅游度假区 北京旅游团 安顺旅游 锦江旅游官网 银川旅游攻略 宁夏旅游景点大全 土耳其旅游攻略 5.1旅游