html - "Firefox quit unexpectedly." when running basic Selenium script in Python -
i'm trying scrape , print html of page using selenium in python, every time run error message
firefox quit unexpectedly. i'm new selenium, appreciated. i'm hoping simplest fix possible. thank you!
my code:
import selenium selenium import webdriver browser = webdriver.firefox() browser.get('http://seleniumhq.org/') print browser.page_source
my experience since upgrade firefox 38.x on windows couple of weeks has been has problem selenium 2.45.x. when invoking browser produces "firefox has stopped working" error have close manually, @ point test runs. others have reported similar issues.
the solution worked me (apart manually closing error each time, got old after few days) uninstall latest version of firefox , downgrade version 37.0.2 on machine run tests. not ideal security reasons, ok if you're careful.
Comments
Post a Comment