I need to download multiple files in Chrome using ChromeDriver ( C# ), first file is downloaded successfully, but the anothers not download, appeared a window asking "Download Multiple Files - Allow | Block "
I need to configure to download automatic. In Preferences of Chrome have this options "Settings -> Content Settings -> Automatic Downloads -> Allow all sites do download multiple files automatically"
I need to configure in "ChromeOptions" like in example
var options = new ChromeOptions();
options.AddUserProfilePreference("...", true);
Below is the image with Chrome message
I found the solution. Just add a preference:
var options = new ChromeOptions();
options.AddUserProfilePreference("profile.default_content_setting_values.automatic_downloads", 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With