mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 05:37:20 +03:00
docs(page): clarify page.close({runBeforeUnload: true}) behavior (#4086)
This commit is contained in:
parent
6bb212ceed
commit
09906949c2
@ -1107,6 +1107,8 @@ Shortcut for [page.mainFrame().click(selector[, options])](#frameclickselector-o
|
||||
page handlers.
|
||||
- returns: <[Promise]>
|
||||
|
||||
If `runBeforeUnload` is `false` the result will resolve only after the page has been closed.
|
||||
If `runBeforeUnload` is `true` the method will **not** wait for the page to close.
|
||||
By default, `page.close()` **does not** run beforeunload handlers.
|
||||
|
||||
> **NOTE** if `runBeforeUnload` is passed as true, a `beforeunload` dialog might be summoned
|
||||
|
Loading…
Reference in New Issue
Block a user