Skip to content

Commit decddcf

Browse files
committed
Change how headless Firefox runs on Linux (may need Xvfb)
1 parent 03b8fba commit decddcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def _set_firefox_options(
519519
options.set_preference(
520520
"browser.download.manager.showAlertOnComplete", False
521521
)
522-
if headless:
522+
if headless and "linux" not in PLATFORM:
523523
options.add_argument("--headless")
524524
if locale_code:
525525
options.set_preference("intl.accept_languages", locale_code)

0 commit comments

Comments
 (0)