import { Celestial } from "https://deno.land/x/astral@0.3.1/bindings/celestial.ts";
Constructors
Celestial expects a open websocket to communicate over
Properties
The Browser domain defines methods and events for browser managing.
Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.
This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object
that has an id
. This id
can be used to get additional information on the Node, resolve it into
the JavaScript object wrapper, etc. It is important that client receives DOM events only for the
nodes that are known to the client. Backend keeps track of the nodes that were sent to the client
and never sends the same node twice. It is client's responsibility to collect information about
the nodes that were sent to the client. Note that iframe
owner elements will return
corresponding document elements as their child nodes.
DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.
This domain emulates different environments for the page.
A domain for letting clients substitute browser's network layer with client code.
Input/Output operations for streams produced by DevTools.
Provides access to log entries.
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.
Actions and events related to the inspected page belong to the page domain.
Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.
Security
Supports additional targets discovery and allows to attach to them.
Methods
Close the websocket connection, does nothing if already closed.