'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.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 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.