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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -