docs(multi-pages): add a note about popups (#8656)

This commit is contained in:
Max Schmitt 2021-09-02 17:21:33 +02:00 committed by GitHub
parent b755705bf1
commit 63e9287b36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ context.Page += async (_, page) => {
## Handling popups
If the page opens a pop-up, you can get a reference to it by listening to the `popup` event on the page.
If the page opens a pop-up (e.g. pages opened by `target="_blank"` links), you can get a reference to it by listening to the `popup` event on the page.
This event is emitted in addition to the `browserContext.on('page')` event, but only for popups relevant to this page.