简体   繁体   中英

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. 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.

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>");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM