Click on Save button on File Download popup in IE1

2019-05-28 15:00发布

问题:

Is there a way to click on the Save or Open button in the pop up that appears while downloading a file in IE 11? I am using Robot Framework AutoIt Library. I can handle the windows that comes subsequent after clicking the Save or Save As option.

回答1:

What kind of file are you downloading? Depending on the file type you should be able to set a default behaviour in IE11.

Personally I think AutoIT solutions with this are overkill, I'd recommend looking at the following blog post for alternative ideas if possible:

https://blog.codecentric.de/en/2010/07/file-downloads-with-selenium-mission-impossible/

However, if this is a scenario you simply MUST automate as you're doing then my first line should help you.