import { type ProtocolMapping } from "https://dotland.deno.dev/x/puppeteer@16.2.0/mod.ts";
const { Events } = ProtocolMapping;
Properties
Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
Reports coverage delta since the last poll (either from an event like this, or from
takePreciseCoverage
for the current isolate. May only be sent if precise code
coverage has been started. This event can be trigged by the embedder to, for example,
trigger collection of coverage data immediately at a certain point in time.
Issued when object should be inspected (for example, as a result of inspect() command line API call).
The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.
Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.
Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font
Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features.
This is fired whenever the list of available sinks changes. A sink is a device or a software surface that you can cast to.
This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.
Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.
Issued when the target starts or stops needing BeginFrames. Deprecated. Issue beginFrame unconditionally instead and use result from beginFrame to detect whether the frames were suppressed.
Emitted only when Input.setInterceptDrags
is enabled. Use this data with Input.dispatchDragEvent
to
restore normal drag and drop behavior.
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
Fired when WebSocket handshake response becomes available.
Fired when WebSocket is about to initiate handshake.
Fired when WebTransport handshake is finished.
Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.
Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.
Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.
Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.
Fired once when parsing the .wbn file has failed.
Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.
Fired when request for resources within a .wbn file failed.
Fired when the node should be inspected. This happens after call to setInspectMode
or when
user manually inspects an element.
Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.
Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.
There is a certificate error. If overriding certificate errors is enabled, then it should be
handled with the handleCertificateError
command. Note: this event does not fire if the
certificate error has been allowed internally. Only one client per target should override
certificate errors at the same time.
Issued when detached from target for any reason (including detachFromTarget
command). Can be
issued multiple times per target if multiple sessions have been attached to it.
Notifies about a new protocol message received from the session (as reported in
attachedToTarget
event).
Issued when some information about a target has changed. This only happens between
targetCreated
and targetDestroyed
.
Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.
Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.
Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth.
Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.
This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal.
Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order.