【发布时间】:2016-06-22 10:38:16
【问题描述】:
我正在使用 selenium 和 python 来做一些自动化测试
我的代码在今天早上之前一直正常工作,当我运行它时它给了我这个异常
driver = fwb.WebDriver(firefox_profile=ff_profile, firefox_binary=ff_bin)
File "/usr/lib/python2.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
self.binary, timeout),
File "/usr/lib/python2.6/site-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
self.binary.launch_browser(self.profile)
File "/usr/lib/python2.6/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 66, in launch_browser
self._wait_until_connectable()
File "/usr/lib/python2.6/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 105, in _wait_until_connectable
raise WebDriverException("Can't load the profile. Profile "
selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details.
我正在开发 CentOS 版本 6.7(最终版)、firefox 38.6.0、selenium 2.52
PS:昨天它运行良好,我没有做任何更改,今天它崩溃了
有什么想法吗?
【问题讨论】:
-
不,在我的情况下,代码直到今天都运行良好
-
pip install -U selenium这并没有解决问题
标签: python firefox selenium centos webdriver