I am unable to click the OK button in an Edge browser message box. I can interrogate it with no issues and when I do a perform click on the button through the method test form, the button works. There is a progress indicator that displays on the website when this message box displays after the logoff button is clicked by Pega. I've set the execution to Asynchronous from the logoff button, but it still does not work.
***Edited by Moderator: Pooja Gadige to add capability tag***
@ScottC37 This is interesting. If it works in interrogation, then it should work at runtime. Do you have a screenshot of the automation? Perhaps there's something I can see there that might give me an idea. Have you tested just the clicking of the button (I assume you are using PerformClick, but want to be sure) to eliminate anything else from being the cause? Are you seeing the click step happen in the automation (i.e. if you step through that step does it get past it) but not seeing the application accept that it was clicked? Can you share a screenshot of your adapter with this control shown as well as what the popup looks like as well?
Posted: 5 months ago
Posted: 14 Apr 2022 10:22 EDT
Scott Cantwell (ScottC37)
Automation Engineer II
If I manually click the OK button, it will eventually move to the IsCreated event. I had WaitForCreate event there before that but it did the same thing. Also, when I had set the execution to Synchronous, it did the same thing.
There is another message box that appears after that but Pega is able to close that one.
Posted: 5 months ago
Posted: 14 Apr 2022 16:22 EDT
Thomas Sasnett (ThomasSasnett)
Lead Robotics Architect
@ScottC37 Without seeing this it is hard to tell. If the PerformClick is Synchronous (meaning it doesn't return until the dialog is closed), then you can use a Parallel Process. On one thread, PerformClick on the button that launches the dialog and on the other thread, click the button (or take the action that closes the dialog). On the bottom thread, continue the automation after the dialog has been handled.