File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,6 @@ def _set_chrome_options(
106
106
}
107
107
}
108
108
chrome_options .add_experimental_option ("prefs" , prefs )
109
- if headless :
110
- chrome_options .add_experimental_option ("w3c" , False )
111
109
chrome_options .add_argument ("--test-type" )
112
110
chrome_options .add_argument ("--log-level=3" )
113
111
chrome_options .add_argument ("--no-first-run" )
@@ -141,8 +139,8 @@ def _set_chrome_options(
141
139
chrome_options .add_argument ("--headless" )
142
140
chrome_options .add_argument ("--disable-gpu" )
143
141
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" )
146
144
return chrome_options
147
145
148
146
You can’t perform that action at this time.
0 commit comments