对于这个先前的问题,我将Selenium更新到了2.0.1版本,但是现在我又遇到了另一个错误,即使配置文件位于以下位置/tmp/webdriver-py-profilecopy: 在执行中,文件“ /home/sultan/Repository/Django/monitor/app/request.py”,第236行 浏览器= Firefox(配置文件) __init__中的文件“ /usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py”,第46行 self.binary,超时), __init__中的文件“ /usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py”,第46行 self.binary.launch_browser(self.profile) 在launch_browser中的第44行,文件“ /usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py” self._wait_until_connectable() _wait_until_connectable中的文件“ /usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py”,第87行 引发WebDriverException(“无法加载配置文件。配置文件目录:%s”%self.profile.path)selenium.common.exceptions.WebDriverException:无法加载配置文件。配置文件目录:/ tmp / webdriver-py-profilecopy怎么了?我该如何解决这个问题?
3 回答

慕标5832272
TA贡献1966条经验 获得超4个赞
将Ubuntu升级到12.04后,我遇到了同样的问题。
该问题在软件包方面,已在库的最新版本中修复。只需更新硒库。对于几乎所有的Python环境,这是:
pip install -U selenium
添加回答
举报
0/150
提交
取消