Pop up alert message box disappear

Hello,
can u help me with this issue

the message box appears and disappears as long as the test is running. after the test error, I click the approve button(with chrome is being controlled by katalon) and a pop up appears and doesn’t disappear.
but when the test is run a pop-up appears and immediately disappears so it can’t click on the message box (ok)

@bcamfchristian, try the following:

WebUI.waitForAlert(30)
WebUI.acceptAlert()

I can save you the pain I went thru, you’re welcome to read thru the back and forth, but there are two possible solutions at the bottom you may like to try

Alerts are displayed, but disappear before I can accept it - Katalon Studio / Tracked Bug Reports - Katalon Community

Thankyou @Dave_Evers
I’ve tried your suggestion and it worked