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(
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
You can’t perform that action at this time.
0 commit comments