,當我想用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
哎呀:)是的,你沒 –