-
'org.openqa.selenium.NoAlertPresentException: no such alert
in case of WebUI.acceptAlert(FailureHandling.STOP_ON_FAILURE) used alone
/ i.e. w/o WebUI.waitForAlert(GlobalVariable.ShortTimeout, FailureHandling.STOP_ON_FAILURE) /
-
'builtin.WaitForAlertKeyword - No alert found after 5 second(s)
in case of
WebUI.waitForAlert(GlobalVariable.ShortTimeout, FailureHandling.STOP_ON_FAILURE)
WebUI.acceptAlert(FailureHandling.STOP_ON_FAILURE) used with
Visually, I can see the alert that appears almost immediately after clicking on the Remove link (time < 5 senonds) and then it almost immediately disappears.
As per https://docs.katalon.com/katalon-studio/docs/webui-wait-for-alert.html#description:
As usual, there is no explanation what āTimeout waiting for an alert to present.ā means. My expectation was that there should not be any error if the alert appears immediately or at any time within the timeout but it looks like waitForAlert() doesnāt work as I expected. The only explanation I can think of is that alert is too fast for waitForAlert() or waitForAlert() is too slow for the alert
Any idea what can be done to handle it? Thanks.

