Python WebDriverException:消息:';无法连接到ChromeDriver';

Python WebDriverException:消息:';无法连接到ChromeDriver';,python,python-3.x,selenium,selenium-chromedriver,Python,Python 3.x,Selenium,Selenium Chromedriver,尝试使用selenium和Chrome运行测试时出现以下错误: $ python3.4 /var/lib/jenkins/scripts/testlink/pacote_deslogado.py while not utils.is_connectable(self.port): /usr/local/lib/python3.4/site-packages/selenium/webdriver/chrome/service.py:70: ResourceWarning: unclosed <

尝试使用selenium和Chrome运行测试时出现以下错误:

$ python3.4 /var/lib/jenkins/scripts/testlink/pacote_deslogado.py
while not utils.is_connectable(self.port): /usr/local/lib/python3.4/site-packages/selenium/webdriver/chrome/service.py:70: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=2049, proto=0, laddr=('127.0.0.1', 54866)>

======================================================================
ERROR: test_a_h_nacional_deslogado (__main__.AHNacionalDeslogado)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/lib/jenkins/scripts/testlink/pacote_deslogado.py", line 25, in setUp
self.driver = webdriver.Chrome(executable_path='/usr/bin/chromedriver')
File "/usr/local/lib/python3.4/site-packages/selenium/webdriver/chrome/webdriver.py", line 59, in __init__
self.service.start()
File "/usr/local/lib/python3.4/site-packages/selenium/webdriver/chrome/service.py", line 74, in start
raise WebDriverException("Can not connect to the ChromeDriver")
selenium.common.exceptions.WebDriverException: Message: Can not connect to the ChromeDriver
$python3.4/var/lib/jenkins/scripts/testlink/pacote_deslogado.py
虽然不是utils.is_可连接(self.port):/usr/local/lib/python3.4/site packages/selenium/webdriver/chrome/service.py:70:ResourceWarning:unclosed
======================================================================
错误:test_a_h_national_deslogado(uu main_uu.ahnationaldeslogado)
----------------------------------------------------------------------
回溯(最近一次呼叫最后一次):
文件“/var/lib/jenkins/scripts/testlink/pacote_deslogado.py”,第25行,在安装程序中
self.driver=webdriver.Chrome(可执行文件路径='/usr/bin/chromedriver')
文件“/usr/local/lib/python3.4/site packages/selenium/webdriver/chrome/webdriver.py”,第59行,在__
self.service.start()
文件“/usr/local/lib/python3.4/site-packages/selenium/webdriver/chrome/service.py”,第74行,开始
引发WebDriverException(“无法连接到ChromeDriver”)
selenium.common.exceptions.WebDriverException:消息:无法连接到ChromeDriver
我的路径中有Chromedrive,它是可执行的,我安装了Chrome浏览器


我不知道还能做什么。

幻影JS也有同样的错误。 我通过编辑phantojs的路径解决了这个问题;
路径不标准:)

哪个chromedriver的输出是什么?谢谢。Chromedriver 2.14,Selenium 2.44。在这行中,只有“webdriver.Chrome()