简体   繁体   中英

Using selenium C#, How can I download Files in IE11?

I am trying to download files in IE11 for an automated test. My scripts are written using selenium in C#. So, I have search a lot but all the answers that I see that might work are on java or directed to Firefox (which makes no sense).

So I have tried to remove the save prompt from IE11 but I found not luck in that And I can't find and alternative to Robot for C#

I end up using System.Windows.Forms.SendKeys.SendWait("%S"); after the popup appears

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM