Don't let Firefox update itself in the middle of a test run

This commit is contained in:
Michael Mintz 2018-08-01 21:01:16 -04:00
parent a7bf236095
commit e4afc39894
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ def _create_firefox_profile(downloads_path, proxy_string):
profile = webdriver.FirefoxProfile()
profile.set_preference("reader.parse-on-load.enabled", False)
profile.set_preference("pdfjs.disabled", True)
profile.set_preference("app.update.auto", False)
profile.set_preference("app.update.enabled", False)
if proxy_string:
proxy_server = proxy_string.split(':')[0]
proxy_port = proxy_string.split(':')[1]