gpt4 book ai didi

python - selenium.common.exceptions.WebDriverException : Message: Can't load the profile

转载 作者:太空宇宙 更新时间:2023-11-03 17:21:33 26 4
gpt4 key购买 nike

我正在使用 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:昨天它运行完美,我没有做任何更改,今天它崩溃了

有什么想法吗?

最佳答案

我找到了解决方法。出现这个问题是因为 FF 扩展的兼容性检查需要超过 30 秒。安装 FF 扩展“Disable Add-on Compatibility Checks”跳过这个,一切都很好。

关于python - selenium.common.exceptions.WebDriverException : Message: Can't load the profile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35868135/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com