简体   繁体   English

使用Selenium WebDriver处理桌面应用程序弹出窗口

[英]Desktop application pop-up handling with selenium webdriver

I am automating a web application using selenium webdriver and java in which after hitting login button a desktop application is launched and the control is no more associated with the webdriver. 我正在使用Selenium Webdriver和Java自动化Web应用程序,在其中单击登录按钮后,将启动桌面应用程序,并且该控件不再与该Webdriver关联。 When the application is launched, the whole desktop screen goes into background and the dialog box comes in front. 启动该应用程序时,整个桌面屏幕进入后台,并且该对话框位于最前面。 I need to access that dialog box to enter pin. 我需要访问该对话框以输入图钉。

I have tried using robot class, AutoIT and AUT but not able to access that dialog to enter pin. 我尝试使用机械手类,AutoIT和AUT,但无法访问该对话框以输入引脚。

Sorry... i dont have enough reputation to load image. 抱歉...我没有足够的声誉来加载图像。 please help. 请帮忙。

You might be getting modal window:- 您可能会看到模态窗口:

You can navigate to it and send pin using driver.switchTo().alert().sendkeys("<pin>"); 您可以导航到它并使用driver.switchTo().alert().sendkeys("<pin>");发送销钉driver.switchTo().alert().sendkeys("<pin>");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Selenium Webdriver 的登录弹出窗口 - Login Pop-Up Using Selenium Webdriver 如何使用Java处理Selenium WebDriver中的弹出窗口 - How to handle Pop-up in Selenium WebDriver using Java 如何使用WebDriver(Selenium JAVA)处理Telerik弹出窗口 - How to deal with Telerik pop-up window with WebDriver (selenium JAVA) 单击导致弹出Java Selenium Webdriver的按钮 - Clicking on button that leads to pop-up Java Selenium Webdriver 无法使用Java在Selenium Webdriver中的弹出窗口中单击按钮 - Unable to click on a button in Pop-up in Selenium webdriver using java 无法识别 Selenium Webdriver 中的元素(skynews 上的 cookie 弹出窗口) - Not able to identify an element in Selenium Webdriver (cookies pop-up on skynews) 无法在Selenium Webdriver中处理Sharepoint弹出页面 - Cannot handle Sharepoint pop-up page in Selenium Webdriver WebDriver-处理HTML弹出窗口 - WebDriver- Handle HTML Pop-Up 使用Selenium Webdriver下载excel时如何处理firefox中的下载弹出窗口 - How to handle download pop-up in firefox, while downloading excel using Selenium Webdriver 如何使用JAVA在Selenium Webdriver的Internet Explorer中处理服务器身份验证弹出窗口? - How can i handle Server authentication pop-up in Internet Explorer in Selenium Webdriver using JAVA?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM