Open nemesifier opened 1 month ago
This problem is caused by this change in Chromium, which was released in v126:
Ignore beforeunload dialogs
According to WebDriver standard the alerts arising on beforeunload event must never be shown in Classic session. This commit implements autoacceptance of any beforeunload alerts.
Ref: https://chromium.googlesource.com/chromium/src/+/5b3168e8f8c4487320c654dd761622b89d548514.
It seems that we may have to switch using bidirectional sessions with the web driver, but it's not clear to me right now how to do that. A temporary workaround could be to use a chromium web-driver version older than 126.
Flaky test: