Chrome Alert: waitForAlert not able to detect alert all the time

Hi there, I was doing web testing automation, and my system will prompt this confirmation alert.

When Katalon detect this alert, not sure why it will disappear within a second.
I use these web UI action to accept the alert

But this code cannot work all the times, sometimes it will fail to detect the alert and cause my test suites fail.

What I can do is, rerun the test case, hopefully it will pass. If it cant, then I will copy the waitForAlert and acceptAlert step from other test case, and overwrite the test case that fail.

And rerun the test case, and sometimes it can go through.

Anyone have similar issue and any solution for this??

Thanks in advanced.

1 Like

Similar to

Do you want to stop Chrome closing the popup?

Try this:

Cant really get any solution from that thread.