Home > database >  How to enable Multiple Downloads in Vba Selenium (Edge)
How to enable Multiple Downloads in Vba Selenium (Edge)

Time:08-19

I'm making a webscraping program, and in the same page I need to download multiple files.

But when I try to download the second file it pops up a message to allow multiple downloads.

I have already tried something like:

driver.SetPreference "download.default_directory", "C:\PDF_folder\"
driver.SetPreference "download.directory_upgrade", True
driver.SetPreference "download.prompt_for_download", False

But the allow window still appears. How can I solve that?

CodePudding user response:

To allow to download multiple files you need to add the following preference:

driver.SetPreference "profile.default_content_setting_values.automatic_downloads": 1
  • Related