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

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