简体   繁体   English

selenium.common.exceptions.WebDriverException:消息:无法加载配置文件

[英]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.

相关问题 selenium.common.exceptions.WebDriverException:消息:“无法加载配置文件。配置文件目录: - selenium.common.exceptions.WebDriverException: Message: "Can't load the profile. Profile Dir: python selenium webdriver问题(selenium.common.exceptions.WebDriverException:消息:“无法加载配置文件。配置文件目录:) - python selenium webdriver issue ( selenium.common.exceptions.WebDriverException: Message: "Can't load the profile. Profile Dir: ) selenium.common.exceptions.WebDriverException:消息:'无法连接到GhostDriver' - selenium.common.exceptions.WebDriverException: Message: 'Can not connect to GhostDriver' selenium.common.exceptions.WebDriverException:消息:在 Python selenium 4 - selenium.common.exceptions.WebDriverException: Message: in Python selenium 4 Selenium 因 selenium.common.exceptions.WebDriverException 崩溃:消息:newSession - Selenium crashing with selenium.common.exceptions.WebDriverException: Message: newSession selenium.common.exceptions.WebDriverException:消息:在Selenium Python中退出 - selenium.common.exceptions.WebDriverException: Message: quit in Selenium Python selenium.common.exceptions.WebDriverException:消息:TypeError:p [0]未定义 - selenium.common.exceptions.WebDriverException: Message: TypeError: p[0] is undefined 'selenium.common.exceptions.WebDriverException:消息:u'chrome无法访问 - 'selenium.common.exceptions.WebDriverException: Message: u'chrome not reachable selenium.common.exceptions.WebDriverException: 消息:无法通过 Selenium Python 使用 ChromeDriver Chrome 连接到服务错误 - selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service error using ChromeDriver Chrome through Selenium Python selenium.common.exceptions.WebDriverException:消息:“chromedriver”可执行文件需要在 PATH 中 - selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM