puppeteer/website/versioned_docs/version-9.1.1/puppeteer.page.once.md
2021-08-10 11:09:48 +01:00

630 B

Home > puppeteer > Page > once

Page.once() method

Signature:

once<K extends keyof PageEventObject>(eventName: K, handler: (event: PageEventObject[K]) => void): EventEmitter;

Parameters

Parameter Type Description
eventName K
handler (event: PageEventObject[K]) => void

Returns:

EventEmitter