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.
2 Likes
Similar to
Please let us know what you are using Katalon Studio for?
I’m testing the Clear Cache link on my page.
My automation is clicking the link and as a result of the click, an alert would normally appear and wait to be accepted.
I would accept the alert and continue on with the rest of the test.
However it seems to appear and disappear straight away, before I can accept it. This is causing the acceptAlert() to fail because the alert is no longer there to be accepted.
How would your work be a…
Do you want to stop Chrome closing the popup?
Try this:
You just need to add this option in Desired Capabilities in your project settings.
Almost 1 week without trouble since i add this.
[image]
Cant really get any solution from that thread.