Skip to content

Commit 0c46e2c

Browse files
committed
Update default browser options
1 parent 109842b commit 0c46e2c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

seleniumbase/core/browser_launcher.py

+20
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,14 @@ def _set_chrome_options(
11651165
chrome_options.add_argument("--ash-no-nudges")
11661166
chrome_options.add_argument("--no-crash-upload")
11671167
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")
11681176
included_disabled_features = []
11691177
included_disabled_features.append("OptimizationHints")
11701178
included_disabled_features.append("OptimizationHintsFetching")
@@ -2286,11 +2294,13 @@ def get_local_driver(
22862294
or "Process unexpectedly closed" in str(e)
22872295
or "Failed to read marionette port" in str(e)
22882296
or "A connection attempt failed" in str(e)
2297+
or "Expected browser binary" in str(e)
22892298
or hasattr(e, "msg") and (
22902299
"geckodriver unexpectedly exited" in e.msg
22912300
or "Process unexpectedly closed" in e.msg
22922301
or "Failed to read marionette port" in e.msg
22932302
or "A connection attempt failed" in e.msg
2303+
or "Expected browser binary" in e.msg
22942304
)
22952305
):
22962306
time.sleep(0.1)
@@ -2326,11 +2336,13 @@ def get_local_driver(
23262336
or "Process unexpectedly closed" in str(e)
23272337
or "Failed to read marionette port" in str(e)
23282338
or "A connection attempt failed" in str(e)
2339+
or "Expected browser binary" in str(e)
23292340
or hasattr(e, "msg") and (
23302341
"geckodriver unexpectedly exited" in e.msg
23312342
or "Process unexpectedly closed" in e.msg
23322343
or "Failed to read marionette port" in e.msg
23332344
or "A connection attempt failed" in e.msg
2345+
or "Expected browser binary" in e.msg
23342346
)
23352347
):
23362348
time.sleep(0.1)
@@ -2820,6 +2832,14 @@ def get_local_driver(
28202832
edge_options.add_argument(chromium_arg_item)
28212833
if disable_features:
28222834
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")
28232843
included_disabled_features = []
28242844
included_disabled_features.append("OptimizationHints")
28252845
included_disabled_features.append("OptimizationHintsFetching")

0 commit comments

Comments
 (0)