Can not capture disappearing alert pop-up

I have an alert pop-up appearing on webpage and it disappears in seconds. It happens when I run Chrome in Katalon Studio. The pop-up works properly when I use it outside Katalon.

  1. How to capture this disappearing alert?

  2. Is there a way to bring back controls to original page after the alert goes away, as my remaining test case is not executing because the object I had captured can not be found after pop-up alert?

In my case, I know the alert is going to show. I don’t know if that is the same with you, however, how about trying these two statements:

'Accept alert when the alert is shown'
WebUI.acceptAlert()

'Switch back to default content'
WebUI.switchToDefaultContent()
1 Like

Because OP says this…

I think it might be an HTML-based popup.

That worked! Thank you so much!