You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistency between WDIO and Playwright with reload and onbeforeunload event #2381
I have a page that should warn the user that they will loose changes when reloading a page in browser. I use the window.onbeforeunload event.
In my test automation spec I
navigate to this page,
then do a reload,
then navigate to another page.
What did you expect to happen?
This works with WebdriverIO implementation but not with Playwright. The second navigate is not executed. I would have expected that the dialog is ignored in Playwright and the navigate would be exeucted: https://playwright.dev/docs/dialogs#introduction
At least, I would expect a consistent behaviour in both automation tools.
I haven't checked yet if this is a just a Serenity/JS issue or could be reproduced in vanilla Playwright, as well.
changed the title [-]Inconsitency between WDIO and Playwright with reload and onbeforeunload event[/-][+]Inconsistency between WDIO and Playwright with reload and onbeforeunload event[/+]on May 19, 2024
Activity
[-]Inconsitency between WDIO and Playwright with reload and onbeforeunload event[/-][+]Inconsistency between WDIO and Playwright with reload and onbeforeunload event[/+]