【发布时间】:2018-06-08 03:51:14
【问题描述】:
Traceback (most recent call last):
File "testing.py", line 20, in <module>
driver = webdriver.Chrome(executable_path="/home/cavema11/public_html/testing.py")
File "/opt/python-3.6.4/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 68, in __init__
self.service.start()
File "/opt/python-3.6.4/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 /home/cavema11/public_html/testing.py
我的 /etc/hosts 中有 127.0.0.1 localhost,但仍然出现此错误。
请帮帮我。
谢谢
【问题讨论】:
-
您检查服务是否在线?
标签: python-3.x selenium google-chrome selenium-webdriver selenium-chromedriver