我使用硒與Python做一些自動化測試selenium.common.exceptions.WebDriverException:消息:無法加載配置文件
我的代碼是否正確工作,直到今天早上,當我運行它,它給了我這個例外
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(決賽),火狐38.6.0,硒2.52
PS:昨天是正常使用,我沒有做任何的改變,今天它崩潰
有什麼想法?
可能重複: - http://stackoverflow.com/questions/6682009/selenium-firefoxprofile-exception-cant-load-這個檔案 –
不行,在我的情況下,代碼直到今天仍然運行良好 –
'pip install -U selenium' 這並沒有解決問題 –