@@ -1165,6 +1165,14 @@ def _set_chrome_options(
1165
1165
chrome_options .add_argument ("--ash-no-nudges" )
1166
1166
chrome_options .add_argument ("--no-crash-upload" )
1167
1167
chrome_options .add_argument ("--deny-permission-prompts" )
1168
+ chrome_options .add_argument (
1169
+ '--simulate-outdated-no-au="Tue, 31 Dec 2099 23:59:59 GMT"'
1170
+ )
1171
+ chrome_options .add_argument ("--disable-ipc-flooding-protection" )
1172
+ chrome_options .add_argument ("--disable-password-generation" )
1173
+ chrome_options .add_argument ("--disable-domain-reliability" )
1174
+ chrome_options .add_argument ("--disable-component-update" )
1175
+ chrome_options .add_argument ("--disable-breakpad" )
1168
1176
included_disabled_features = []
1169
1177
included_disabled_features .append ("OptimizationHints" )
1170
1178
included_disabled_features .append ("OptimizationHintsFetching" )
@@ -2286,11 +2294,13 @@ def get_local_driver(
2286
2294
or "Process unexpectedly closed" in str (e )
2287
2295
or "Failed to read marionette port" in str (e )
2288
2296
or "A connection attempt failed" in str (e )
2297
+ or "Expected browser binary" in str (e )
2289
2298
or hasattr (e , "msg" ) and (
2290
2299
"geckodriver unexpectedly exited" in e .msg
2291
2300
or "Process unexpectedly closed" in e .msg
2292
2301
or "Failed to read marionette port" in e .msg
2293
2302
or "A connection attempt failed" in e .msg
2303
+ or "Expected browser binary" in e .msg
2294
2304
)
2295
2305
):
2296
2306
time .sleep (0.1 )
@@ -2326,11 +2336,13 @@ def get_local_driver(
2326
2336
or "Process unexpectedly closed" in str (e )
2327
2337
or "Failed to read marionette port" in str (e )
2328
2338
or "A connection attempt failed" in str (e )
2339
+ or "Expected browser binary" in str (e )
2329
2340
or hasattr (e , "msg" ) and (
2330
2341
"geckodriver unexpectedly exited" in e .msg
2331
2342
or "Process unexpectedly closed" in e .msg
2332
2343
or "Failed to read marionette port" in e .msg
2333
2344
or "A connection attempt failed" in e .msg
2345
+ or "Expected browser binary" in e .msg
2334
2346
)
2335
2347
):
2336
2348
time .sleep (0.1 )
@@ -2820,6 +2832,14 @@ def get_local_driver(
2820
2832
edge_options .add_argument (chromium_arg_item )
2821
2833
if disable_features :
2822
2834
extra_disabled_features .extend (disable_features .split ("," ))
2835
+ edge_options .add_argument (
2836
+ '--simulate-outdated-no-au="Tue, 31 Dec 2099 23:59:59 GMT"'
2837
+ )
2838
+ edge_options .add_argument ("--disable-ipc-flooding-protection" )
2839
+ edge_options .add_argument ("--disable-password-generation" )
2840
+ edge_options .add_argument ("--disable-domain-reliability" )
2841
+ edge_options .add_argument ("--disable-component-update" )
2842
+ edge_options .add_argument ("--disable-breakpad" )
2823
2843
included_disabled_features = []
2824
2844
included_disabled_features .append ("OptimizationHints" )
2825
2845
included_disabled_features .append ("OptimizationHintsFetching" )
0 commit comments