Skip to content

Instantly share code, notes, and snippets.

@Desperado
Forked from ascv/gist:5122536
Created April 9, 2013 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Desperado/5344880 to your computer and use it in GitHub Desktop.
Save Desperado/5344880 to your computer and use it in GitHub Desktop.
from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile.add_extension('JSErrorCollector.xpi')
ff=webdriver.Firefox(profile)
ff.get('http://www.somepage.com')
ff.execute_script('return window.JSErrorCollector_errors.pump()')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment