@@ -145,7 +145,8 @@ def _set_chrome_options(
145
145
"safebrowsing.enabled" : False ,
146
146
"safebrowsing.disable_download_protection" : True ,
147
147
"profile" : {
148
- "password_manager_enabled" : False
148
+ "password_manager_enabled" : False ,
149
+ "default_content_setting_values.automatic_downloads" : 1
149
150
}
150
151
}
151
152
if locale_code :
@@ -349,11 +350,14 @@ def _create_firefox_profile(
349
350
"browser.download.animateNotifications" , False )
350
351
profile .set_preference ("browser.download.dir" , downloads_path )
351
352
profile .set_preference ("browser.download.folderList" , 2 )
353
+ profile .set_preference ("browser.helperApps.alwaysAsk.force" , False )
354
+ profile .set_preference (
355
+ "browser.download.manager.showWhenStarting" , False )
352
356
profile .set_preference (
353
357
"browser.helperApps.neverAsk.saveToDisk" ,
354
358
("application/pdf, application/zip, application/octet-stream, "
355
359
"text/csv, text/xml, application/xml, text/plain, "
356
- "text/octet-stream, "
360
+ "text/octet-stream, application/x-gzip, application/x-tar "
357
361
"application/"
358
362
"vnd.openxmlformats-officedocument.spreadsheetml.sheet" ))
359
363
return profile
@@ -761,7 +765,8 @@ def get_local_driver(
761
765
"safebrowsing.enabled" : False ,
762
766
"safebrowsing.disable_download_protection" : True ,
763
767
"profile" : {
764
- "password_manager_enabled" : False
768
+ "password_manager_enabled" : False ,
769
+ "default_content_setting_values.automatic_downloads" : 1
765
770
}
766
771
}
767
772
if locale_code :
0 commit comments