Skip to content

Commit efbc9b5

Browse files
authored
Describe testing beforeunload in alerts.en.md
Related info for ChromeDriver: https://issues.chromium.org/issues/351858989#comment30
1 parent a6d9dbf commit efbc9b5

File tree

1 file changed

+8
-0
lines changed
  • website_and_docs/content/documentation/webdriver/interactions

1 file changed

+8
-0
lines changed

website_and_docs/content/documentation/webdriver/interactions/alerts.en.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,11 @@ alert.sendKeys("Selenium")
176176
alert.accept()
177177
{{< /tab >}}
178178
{{< /tabpane >}}
179+
180+
## beforeunload
181+
182+
Drivers released in approximately 2024 and later automatically dismiss beforeunload prompts by default. If the old behavior is needed, [enable bidi]({{< ref "../bidi/" >}}).
183+
184+
NOTE: ChromeDriver still dismisses prompts unless `options.unhandled_prompt_behavior = 'ignore'` is also specified, in addition to enabling bidi (as recently as version 134 or later).
185+
186+
NOTE: ChromeDriver implemented automatically dismissing beforeunload prompts in approximately version 126 but enabling bidi had no effect on beforeunload prompts until approximately version 133.

0 commit comments

Comments
 (0)