Update Firefox options not effecting all environments

This commit is contained in:
Michael Mintz 2021-01-02 15:44:56 -05:00
parent dce489a951
commit 21e47ad76e
1 changed files with 4 additions and 9 deletions

View File

@ -689,15 +689,10 @@ def get_local_driver(
print("\nWarning: Could not install geckodriver: "
"%s" % e)
sys.argv = sys_args # Put back the original sys args
if "linux" in PLATFORM or not headless:
firefox_driver = webdriver.Firefox(
firefox_profile=profile,
capabilities=firefox_capabilities)
else:
firefox_driver = webdriver.Firefox(
firefox_profile=profile,
capabilities=firefox_capabilities,
options=options)
firefox_driver = webdriver.Firefox(
firefox_profile=profile,
capabilities=firefox_capabilities,
options=options)
except Exception:
profile = _create_firefox_profile(
downloads_path, locale_code,