简体   繁体   English

使用Selenium Web Driver检查IE保存对话框的可见性

[英]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.

相关问题 通过Java中的Selenium Web驱动程序处理另存为对话框 - Handle save as dialog box by selenium web driver in java 如何通过使用Java为Selenium Web驱动程序中的复选框编写脚本 - How to write the script for the check box in Selenium web driver by using Java 如何使用Selenium Web Driver和Java访问在Bootstrap中开发的模型对话框内容 - How to Access Model Dialog Box content developed in Bootstrap using Selenium Web Driver and Java 如何使用 selenium Web 驱动程序自动化对话框消息的测试用例 - How to automate test cases for a dialog box message using selenium web driver 使用Selenium Web Driver无法在IE中打开任何网页 - not able to open any web page in IE by using Selenium Web Driver Java-Selenium WebDriver-如何检查“文件下载”对话框是否可见? (不下载仅能见度) - Java - Selenium WebDriver - How do I check if the File Download Dialog Box is visible? (Not download Only visibility) 使用 autoit 和 selenium 在另存为对话框中重命名文件名 - Renaming filename in save as dialog box using autoit with selenium Selenium Web Driver:使用Java处理Confirm Box - Selenium Web Driver : Handle Confirm Box using Java 使用Java检查硒中是否存在模型对话框 - check whether model dialog box is present or not in selenium using java 适用于Java 8的Selenium Server和IE Web驱动程序 - Selenium Server and IE web driver for Java 8
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM