Skip to content

Commit 3bb813f

Browse files
authored
Merge pull request #2843 from seleniumbase/update-browser-options
Update default browser options
2 parents 109842b + d330bc6 commit 3bb813f

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

Diff for: mkdocs_build/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lxml==5.2.2
2020
pyquery==2.0.0
2121
readtime==3.0.0
2222
mkdocs==1.6.0
23-
mkdocs-material==9.5.25
23+
mkdocs-material==9.5.26
2424
mkdocs-exclude-search==0.6.6
2525
mkdocs-simple-hooks==0.1.5
2626
mkdocs-material-extensions==1.3.1

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ filelock>=3.12.2;python_version<"3.8"
1111
filelock>=3.14.0;python_version>="3.8"
1212
platformdirs>=4.0.0;python_version<"3.8"
1313
platformdirs>=4.2.2;python_version>="3.8"
14-
typing-extensions>=4.12.1;python_version>="3.8"
14+
typing-extensions>=4.12.2;python_version>="3.8"
1515
parse>=1.20.1
1616
parse-type>=0.6.2
1717
pyyaml>=6.0.1

Diff for: seleniumbase/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.27.4"
2+
__version__ = "4.27.5"

Diff for: 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")

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
'filelock>=3.14.0;python_version>="3.8"',
160160
'platformdirs>=4.0.0;python_version<"3.8"',
161161
'platformdirs>=4.2.2;python_version>="3.8"',
162-
'typing-extensions>=4.12.1;python_version>="3.8"',
162+
'typing-extensions>=4.12.2;python_version>="3.8"',
163163
'parse>=1.20.1',
164164
'parse-type>=0.6.2',
165165
'pyyaml>=6.0.1',

0 commit comments

Comments
 (0)