【发布时间】:2016-10-30 15:39:26
【问题描述】:
当我想使用FireFox webdriver时遇到了这个异常
raise WebDriverException "浏览器似乎已退出" WebDriverException:消息:浏览器似乎在我们连接之前已经退出。如果您在 FirefoxBinary 构造函数,查看详情。
我阅读了this question 并更新了我的 selenium,但我已经遇到了同样的问题。
我的代码:
driver = webdriver.Firefox()
time.sleep(5)
driver.get('http://www.example.com')
更新
现在我有这个错误
OSError: [Errno 20] Not a directory
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x407a690>> ignored
【问题讨论】:
-
更新 selenium 和 firefox 版本
-
@LeonBarkan 我在我的问题中写道我做到了
-
糟糕 :) 是的,你做到了
-
你能贴出你的代码吗
-
@LeonBarkan 我用一个简单的例子测试,我添加了它
标签: python selenium selenium-webdriver selenium-firefoxdriver