Skip to content

Instantly share code, notes, and snippets.

@ascv
Last active December 14, 2015 17:29

Revisions

  1. ascv revised this gist Mar 9, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    from selenium import webdriver

    profile=webdriver.FirefoxProfile()
    profile = webdriver.FirefoxProfile()
    profile.add_extension('JSErrorCollector.xpi')

    ff=webdriver.Firefox(profile)
  2. ascv renamed this gist Mar 9, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. ascv created this gist Mar 9, 2013.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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()')