Unable to click OK button in Edge Browser Message Box. Pega 19.1.86

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.

@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?

@ThomasSasnett

This PerformClick event is executed

After , this message box will pop up.

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.

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

@ThomasSasnett

I implemented your solution and it it working as intended now.

Thanks!