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

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

问题描述

有没有办法在 IE 11 中下载文件时出现的弹出窗口中单击保存"或打开"按钮?我正在使用机器人框架 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/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.

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

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