selenium webdriver - How download exe files with ChromeDriver? -


I try to download EXE files through ChromeDriver. But I see the following message: "This type of files can harm your computer ..." How can I avoid this message?

I do not think we can stop those messages in Chrome.

But I have an alternative solution.

1) Chrome: // settings / - & gt; Download - & gt; Check the "Ask where to save each file before downloading" check box. So before downloading a file chrome, you will ask where the file has been saved & amp; The default location is the "Downloads" folder.

2) Just enter an email, (as the focus is already on popup).

Send ("{ENTER} 3) Once you click on the download link, run the following AutoIt script using the command:

Runtime.getRuntime ( ). Exec ("AutoIt Executable Path");

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -