【发布时间】:2016-02-25 10:29:25
【问题描述】:
我正在尝试使用 python 脚本运行 selenium 测试,但在执行测试时收到以下错误:
Traceback (most recent call last):
File "/var/www/html/selenium-scripts/example.py", line 13, in <module>
driver = webdriver.Chrome()
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 61, in __init__self.service.start()
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 88, in start
raise WebDriverException("Can not connect to the Service %s" % self.path)
selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver
请告知如何解决这个问题
【问题讨论】:
-
你链接到我的问题?
-
抱歉,链接错误;)有解决办法:stackoverflow.com/questions/24900922/…
-
解决了吗?因为我有同样的问题
-
谁能解决这个问题。我在 Mac OS X 上遇到同样的问题