,当我想用FireFox webdriver
如何修复硒WebDriverException:“浏览器似乎已经退出”
提高WebDriverException“浏览器似乎已经退出” WebDriverException我得到这个异常:消息:浏览器在我们连接之前似乎已经退出。如果您在FirefoxBinary的构造函数 中指定了一个log_file,请查看详细信息。
我读this question并更新了我的硒,但我已经有同样的问题。
我的代码:
driver = webdriver.Firefox()
time.sleep(5)
driver.get('http://www.ooshop.com')
UPDATE
,现在我有这个错误
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
更新硒和Firefox版本 –
@LeonBarkan我在疑问,我做到了写 – parik
哎呀:)是的,你没 –