Update browser launcher for Firefox

This commit is contained in:
Michael Mintz 2018-09-19 16:42:49 -04:00
parent 0fe9fc5294
commit 043c8da232
1 changed files with 2 additions and 2 deletions

View File

@ -257,13 +257,13 @@ def get_local_driver(browser_name, headless, proxy_string):
firefox_driver = webdriver.Firefox(
firefox_profile=profile,
capabilities=firefox_capabilities,
firefox_options=options,
options=options,
executable_path=LOCAL_GECKODRIVER)
else:
firefox_driver = webdriver.Firefox(
firefox_profile=profile,
capabilities=firefox_capabilities,
firefox_options=options)
options=options)
except WebDriverException:
# Don't use Geckodriver: Only works for old versions of Firefox
profile = _create_firefox_profile(downloads_path, proxy_string)