[英]selenium.common.exceptions.WebDriverException: Message: Can't load the profile
I'm using selenium with python to do some automated testing 我正在将硒与python一起使用进行一些自动化测试
my code was working correctly until this morning, when I run it it gave me this exception 我的代码一直运行到今天早上,当我运行它时,它给了我这个例外
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.
I'm working on CentOS release 6.7 (Final), firefox 38.6.0, selenium 2.52 我正在使用CentOS 6.7版(最终版),Firefox 38.6.0,硒2.52
PS: YESTERDAY it was working perfectly, I didn't do any changes, today it crashes PS:昨天工作正常,我没有做任何更改,今天崩溃了
any ideas ? 有任何想法吗 ?
I found a workaround. 我找到了解决方法。 The problem appears because the compatibility check for FF extensions takes more than 30 secounds. 出现问题是因为FF扩展的兼容性检查花费了30秒以上。 Installing the FF extension "Disable Add-on Compatibility Checks" skips this and everything is fine. 安装FF扩展“禁用附加组件兼容性检查”将跳过此步骤,一切正常。
The problem was 127.0.0.1 blocked in the firewall of the server. 问题是服务器的防火墙阻止了127.0.0.1。 I don't know how it's blocked, but when I removed it from the firewall, it worked 我不知道它是如何被阻止的,但是当我从防火墙中删除它时,它就起作用了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.