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