在机器人框架的IE11中,单击“文件下载"弹出窗口上的“保存"按钮. [英] Click on Save button on File Download popup in IE11 in robot framework

查看:340
本文介绍了在机器人框架的IE11中,单击“文件下载"弹出窗口上的“保存"按钮.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE 11中下载文件时,是否可以单击出现的弹出窗口中的保存"或打开"按钮?我正在使用Robot Framework AutoIt库. 单击保存"或另存为"选项后,我可以处理随后出现的窗口.

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.

推荐答案

您要下载哪种文件?根据文件类型,您应该能够在IE11中设置默认行为.

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

就我个人而言,我认为使用AutoIT解决方案是过大的,如果可能的话,我建议您查看以下博客文章,以获取其他建议:

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/zh-CN/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.

这篇关于在机器人框架的IE11中,单击“文件下载"弹出窗口上的“保存"按钮.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆