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. Remarks: A |
|
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. |
|
Issue |
|
(Experimental) Emitted when a DevTools issue is reported. |
|
Load |
|
Emitted when the JavaScript load event is dispatched. |
|
Metrics |
|
Emitted when the JavaScript code makes a call to Remarks: Contains an object with two properties:
|
|
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. Remarks: The object is readonly. See Page.setRequestInterception() for intercepting and mutating requests. |
|
RequestFailed |
|
Emitted when a request fails, for example by timing out. Contains a HTTPRequest. Remarks: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will complete with |
|
RequestFinished |
|
Emitted when a request finishes successfully. Contains a HTTPRequest. |
|
RequestServedFromCache |
|
Emitted when a request ended up loading from cache. Contains a HTTPRequest. Remarks: For certain requests, might contain undefined. https://crbug.com/750469 |
|
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. |