Skip to content

Commit 2458e34

Browse files
committed
Allow multiple downloads without prompts
1 parent 9911e6f commit 2458e34

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,12 @@ def _set_chrome_options(
146146
"safebrowsing.disable_download_protection": True,
147147
"profile": {
148148
"password_manager_enabled": False,
149-
"default_content_setting_values.automatic_downloads": 1
149+
"default_content_setting_values.automatic_downloads": 1,
150+
"managed_default_content_settings.automatic_downloads": 1,
151+
"default_content_settings.popups": 0,
152+
"managed_default_content_settings.popups": 0,
153+
"content_settings.exceptions.automatic_downloads.*.setting": 1,
154+
"content_settings.pattern_pairs.*.multiple-automatic-downloads": 1
150155
}
151156
}
152157
if locale_code:
@@ -766,7 +771,10 @@ def get_local_driver(
766771
"safebrowsing.disable_download_protection": True,
767772
"profile": {
768773
"password_manager_enabled": False,
769-
"default_content_setting_values.automatic_downloads": 1
774+
"default_content_setting_values.automatic_downloads": 1,
775+
"managed_default_content_settings.automatic_downloads": 1,
776+
"default_content_settings.popups": 0,
777+
"managed_default_content_settings.popups": 0
770778
}
771779
}
772780
if locale_code:

0 commit comments

Comments
 (0)