Skip to content

Instantly share code, notes, and snippets.

@SEJeff
Created June 17, 2013 14:24

Revisions

  1. SEJeff created this gist Jun 17, 2013.
    12 changes: 12 additions & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    cls.browser_prefs = {
    # Silence the "Unresponsive script" dialogs
    "dom.max_chrome_script_run_time": 600,
    "dom.max_script_run_time": 600,
    "browser.download.folderList": 2,
    # We actually download CSV files from search results
    # to verify the search functionality works as expected
    "browser.download.dir": tempfile.mkdtemp(),
    "browser.download.manager.showWhenStarting": False,
    "browser.helperApps.neverAsk.saveToDisk": "text/csv,application/csv,text/plain",
    }
    cls.browser = Browser('firefox', profile_preferences=cls.browser_prefs)