I’m trying to catch the browser pop in Chrome after trying to leave a form.
Indeed when I click on the button “Close” in the form (after filling some fields), a popup appears asking if I’m sure to want to leave the form:
I tried to catch the pop-up and the action when clicking the buttons inside (OK and Cancel) but I didn’t succeed. I tried these steps:
But when I tried to execute it, it’s failled from the step assertConfirmationPresent, the step is not executed. Could you please help me to do that ?
Could you please help me to do that ?