File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ def _set_chrome_options(
110
110
}
111
111
chrome_options .add_experimental_option ("prefs" , prefs )
112
112
chrome_options .add_experimental_option ("w3c" , True )
113
+ chrome_options .add_experimental_option (
114
+ "excludeSwitches" , ["enable-automation" ])
115
+ chrome_options .add_experimental_option ("useAutomationExtension" , False )
113
116
if enable_sync :
114
117
chrome_options .add_experimental_option (
115
118
"excludeSwitches" , ["disable-sync" ])
@@ -159,9 +162,10 @@ def _set_chrome_options(
159
162
# https://bugs.chromium.org/p/chromium/issues/detail?id=706008
160
163
chrome_options .add_argument ("--headless" )
161
164
chrome_options .add_argument ("--disable-gpu" )
162
- chrome_options .add_argument ("--no-sandbox" )
163
165
if "linux" in PLATFORM :
164
- chrome_options .add_argument ("--disable-dev-shm-usage" )
166
+ chrome_options .add_argument ("--no-sandbox" )
167
+ if "linux" in PLATFORM :
168
+ chrome_options .add_argument ("--disable-dev-shm-usage" )
165
169
return chrome_options
166
170
167
171
You can’t perform that action at this time.
0 commit comments