Skip to content

Commit 21e47ad

Browse files
committed
Update Firefox options not effecting all environments
1 parent dce489a commit 21e47ad

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -689,15 +689,10 @@ def get_local_driver(
689689
print("\nWarning: Could not install geckodriver: "
690690
"%s" % e)
691691
sys.argv = sys_args # Put back the original sys args
692-
if "linux" in PLATFORM or not headless:
693-
firefox_driver = webdriver.Firefox(
694-
firefox_profile=profile,
695-
capabilities=firefox_capabilities)
696-
else:
697-
firefox_driver = webdriver.Firefox(
698-
firefox_profile=profile,
699-
capabilities=firefox_capabilities,
700-
options=options)
692+
firefox_driver = webdriver.Firefox(
693+
firefox_profile=profile,
694+
capabilities=firefox_capabilities,
695+
options=options)
701696
except Exception:
702697
profile = _create_firefox_profile(
703698
downloads_path, locale_code,

0 commit comments

Comments
 (0)