IE 11 auto accepts the alert pop up
carriann last edited by
So I am on an edit page and when I click the cancel button to stay on the edit page the
IEdriver automatically accepts the leave page in alert pop up. I even added the
options = new ie.Options(); options.setAlertBehavior('ignore');
But it still auto-accepts the alert dialog. Is there a way I can stop this behavior?
If you read through the NOTE section of the dismiss action in webdriver https://www.w3.org/TR/webdriver/#dismiss-alert - says
A request to dismiss an alert user prompt, which may not necessarily have a dismiss button, has the same effect as accepting it.
Could you please try out 2 things?
- Try the same event on a different browser and see the result.
- Talk to the developer and figure out if there is a dismiss event associated with the CANCEL button, if not add it. (I guess this could be the case)
This should have been a comment as it requires some action on your end and the solution might vary based on your findings, but due to the limitation on the words I am writing this as a solution.