15889369825 发表于 2016-10-12 09:08:38

求大神解

E
======================================================================
ERROR: test_3 (__main__.test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\admin\Desktop\3.py", line 12, in setUp
    self.driver = webdriver.Firefox()
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 80, in __init__
    self.binary, timeout)
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 52, in __init__
    self.binary.launch_browser(self.profile, timeout=timeout)
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 68, in launch_browser
    self._wait_until_connectable(timeout=timeout)
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 99, in _wait_until_connectable
    "The browser appears to have exited "
WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.


----------------------------------------------------------------------
Ran 1 test in 15.122s

FAILED (errors=1)
这是什么错误,pyhton没安装好

qiguojie 发表于 2016-10-12 10:21:57

我也不知道具体原因哈。

不过最近出现了selenium webdriver无法启动firefox最新版的情况,我们查了一下,需要更新到最新的webdriver3,然后还要安装特别的firefox驱动才行。你可以查查这个方向。

15889369825 发表于 2016-10-12 10:28:42

qiguojie 发表于 2016-10-12 10:21
我也不知道具体原因哈。

不过最近出现了selenium webdriver无法启动firefox最新版的情况,我们查了一下 ...

谢谢!已经搞定了是兼容性问题 selenium25只兼容火狐46一下版本
页: [1]
查看完整版本: 求大神解