def reset_browser(): """ >> reset_browser Reset the browser completely. """ global browser browser = TwillBrowser() global _options _options = {} _options.update(_orig_options)
'show_cookies', 'add_auth', 'run', 'runfile', 'setglobal', 'setlocal', 'debug', 'title', 'exit', 'config', 'tidy_ok', 'redirect_output', 'reset_output', 'redirect_error', 'reset_error', 'add_extra_header', 'show_extra_headers', 'clear_extra_headers', 'info', 'set_proxy' ] import re, getpass, time from browser import TwillBrowser from errors import TwillException, TwillAssertionError import utils from utils import set_form_control_value, run_tidy from namespaces import get_twill_glocals browser = TwillBrowser() def get_browser(): return browser def reset_browser(): """ >> reset_browser Reset the browser completely. """ global browser browser._browser.close() browser = TwillBrowser()