51Testing软件测试论坛

标题: 求大神解 [打印本页]

作者: 15889369825    时间: 2016-10-12 09:08
标题: 求大神解
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
我也不知道具体原因哈。

不过最近出现了selenium webdriver无法启动firefox最新版的情况,我们查了一下,需要更新到最新的webdriver3,然后还要安装特别的firefox驱动才行。你可以查查这个方向。
作者: 15889369825    时间: 2016-10-12 10:28
qiguojie 发表于 2016-10-12 10:21
我也不知道具体原因哈。

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

谢谢!已经搞定了  是兼容性问题 selenium25只兼容火狐46一下版本




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2