[英]check visibility of IE save dialog box using Selenium Web Driver
Currently, in my web application, I want to automatically save the generated excel reports on button click. 当前,在我的Web应用程序中,我想在单击按钮时自动保存生成的excel报告。
Issue:- I am not able to identify the visibility of IE save dialog box using Robot Class 问题:-我无法使用Robot Class识别IE保存对话框的可见性
Logic used to save IE file which is working successfully to save when alert is prompted 用于保存IE文件的逻辑,当提示警报时,该文件可以成功保存
Robot robot = new Robot();
robot.setAutoDelay(5000);
Thread.sleep(3000);
robot.keyPress(KeyEvent.VK_ALT);
Thread.sleep(1000);
robot.keyPress(KeyEvent.VK_S);
robot.keyRelease(KeyEvent.VK_S);
robot.keyRelease(KeyEvent.VK_ALT);
How to check the visibility of save dialog box in IE 11 browser also in Firefox? 如何在Firefox 11和IE 11浏览器中查看保存对话框的可见性?
I checked this post for the solution but it's not working. 我检查了这篇文章的解决方案,但无法正常工作。
Robot class does not provide possibility to detect if dialog is visible or not. 机械手类无法检测对话框是否可见。 Just put appropriate delays and clicks on buttons.
只需设置适当的延迟并单击按钮即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.