PageEvent enum
All the events that a page instance may emit.
Signature:
export declare const enum PageEvent
Enumeration Members
Member | Value | Description |
---|---|---|
Close |
| Emitted when the page closes. |
Console |
| Emitted when JavaScript within the page calls one of console API methods, e.g. |
Dialog |
| Emitted when a JavaScript dialog appears, such as |
DOMContentLoaded |
| Emitted when the JavaScript DOMContentLoaded event is dispatched. |
Error |
| Emitted when the page crashes. Will contain an |
FrameAttached |
| Emitted when a frame is attached. Will contain a Frame. |
FrameDetached |
| Emitted when a frame is detached. Will contain a Frame. |
FrameNavigated |
| Emitted when a frame is navigated to a new URL. Will contain a Frame. |
Load |
| Emitted when the JavaScript load event is dispatched. |
Metrics |
| Emitted when the JavaScript code makes a call to |
PageError |
| Emitted when an uncaught exception happens within the page. Contains an |
Popup |
| Emitted when the page opens a new tab or window. Contains a Page corresponding to the popup window. |
Request |
| Emitted when a page issues a request and contains a HTTPRequest. |
RequestFailed |
| Emitted when a request fails, for example by timing out. Contains a HTTPRequest. |
RequestFinished |
| Emitted when a request finishes successfully. Contains a HTTPRequest. |
RequestServedFromCache |
| Emitted when a request ended up loading from cache. Contains a HTTPRequest. |
Response |
| Emitted when a response is received. Contains a HTTPResponse. |
WorkerCreated |
| Emitted when a dedicated WebWorker is spawned by the page. |
WorkerDestroyed |
| Emitted when a dedicated WebWorker is destroyed by the page. |