@@ -144,15 +144,15 @@ def _set_chrome_options(
144
144
"download.directory_upgrade" : True ,
145
145
"safebrowsing.enabled" : False ,
146
146
"safebrowsing.disable_download_protection" : True ,
147
- "profile " : {
148
- "password_manager_enabled " : False ,
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
155
- }
147
+ "default_content_setting_values.notifications " : 0 ,
148
+ "default_content_settings.popups " : 0 ,
149
+ "managed_default_content_settings.popups " : 0 ,
150
+ "content_settings.exceptions. automatic_downloads.*.setting " : 1 ,
151
+ "profile.password_manager_enabled " : False ,
152
+ "profile.default_content_setting_values.notifications " : 0 ,
153
+ "profile.default_content_settings.popups " : 0 ,
154
+ "profile.managed_default_content_settings.popups " : 0 ,
155
+ "profile.default_content_setting_values.automatic_downloads" : 1
156
156
}
157
157
if locale_code :
158
158
prefs ["intl.accept_languages" ] = locale_code
@@ -769,13 +769,15 @@ def get_local_driver(
769
769
"download.directory_upgrade" : True ,
770
770
"safebrowsing.enabled" : False ,
771
771
"safebrowsing.disable_download_protection" : True ,
772
- "profile" : {
773
- "password_manager_enabled" : False ,
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
778
- }
772
+ "default_content_setting_values.notifications" : 0 ,
773
+ "default_content_settings.popups" : 0 ,
774
+ "managed_default_content_settings.popups" : 0 ,
775
+ "content_settings.exceptions.automatic_downloads.*.setting" : 1 ,
776
+ "profile.password_manager_enabled" : False ,
777
+ "profile.default_content_setting_values.notifications" : 0 ,
778
+ "profile.default_content_settings.popups" : 0 ,
779
+ "profile.managed_default_content_settings.popups" : 0 ,
780
+ "profile.default_content_setting_values.automatic_downloads" : 1
779
781
}
780
782
if locale_code :
781
783
prefs ["intl.accept_languages" ] = locale_code
0 commit comments