Accept downloads automatically in Selenium WebDriver using IEDriver

2k views Asked by At

How I can accept downloads in Selenium using InternetExplorerDriver.
Now when click to download file, Save As Dialog appears and then WebDriver stop the work.
I try to search a capability to set this how in ChromeDriver is just only add chromedriver.AddUserProfilePreference("download.prompt_for_download", false);
but I not found.
I need when driver click in button to download, the download automatically start and save in any folder.
Sorry my bad question. I'm new here.

1

There are 1 answers

0
Gaurang Shah On

I don't have windows machine so i couldn't check this but try following article. There is a registry which you need to modify to get such behavior. Let me know if it works. https://jwcooney.com/2014/03/31/remove-internet-explorer-open-or-save-popup/

found another thread discussing the same thing https://superuser.com/questions/246553/how-to-disable-file-download-popup-in-internet-explorer