Skip to content

Commit bc88424

Browse files
committed
Update default Chrome options
1 parent e1cebd0 commit bc88424

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ def _set_chrome_options(
106106
}
107107
}
108108
chrome_options.add_experimental_option("prefs", prefs)
109-
if headless:
110-
chrome_options.add_experimental_option("w3c", False)
111109
chrome_options.add_argument("--test-type")
112110
chrome_options.add_argument("--log-level=3")
113111
chrome_options.add_argument("--no-first-run")
@@ -141,8 +139,8 @@ def _set_chrome_options(
141139
chrome_options.add_argument("--headless")
142140
chrome_options.add_argument("--disable-gpu")
143141
chrome_options.add_argument("--no-sandbox")
144-
chrome_options.add_argument("--disable-setuid-sandbox")
145-
chrome_options.add_argument("--disable-dev-shm-usage")
142+
if "linux" in PLATFORM:
143+
chrome_options.add_argument("--disable-dev-shm-usage")
146144
return chrome_options
147145

148146

0 commit comments

Comments
 (0)