profile = selenium.webdriver.FirefoxProfile()
profile.add_extension('addon-8753-latest.xpi')
browser = selenium.webdriver.Firefox(profile)
browser.get('http://wwwhatever.com')
body = browser.find_element_by_tag_name('body')
body.send_keys(selenium.webdriver.common.keys.Keys.CONTROL + 'q')
Disabling Javascript after page has been rendered in Selenium Webdriver