Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface default.DOMSnapshot.NodeTreeSnapshot
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { NodeTreeSnapshot } = default.DOMSnapshot;

Table containing nodes.

Properties

optional
parentIndex: integer[]

Parent node index.

optional
nodeType: integer[]

Node's nodeType.

optional
shadowRootType: RareStringData

Type of the shadow root the Node is in. String values are equal to the ShadowRootType enum.

optional
nodeName: StringIndex[]

Node's nodeName.

optional
nodeValue: StringIndex[]

Node's nodeValue.

optional
backendNodeId: DOM.BackendNodeId[]

Node's id, corresponds to DOM.Node.backendNodeId.

optional
attributes: ArrayOfStrings[]

Attributes of an Element node. Flatten name, value pairs.

optional
textValue: RareStringData

Only set for textarea elements, contains the text value.

optional
inputValue: RareStringData

Only set for input elements, contains the input's associated text value.

optional
inputChecked: RareBooleanData

Only set for radio and checkbox input elements, indicates if the element has been checked

optional
optionSelected: RareBooleanData

Only set for option elements, indicates if the element has been selected

optional
contentDocumentIndex: RareIntegerData

The index of the document in the list of the snapshot documents.

optional
pseudoType: RareStringData

Type of a pseudo element node.

optional
isClickable: RareBooleanData

Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.

optional
currentSourceURL: RareStringData

The selected url for nodes with a srcset attribute.

optional
originURL: RareStringData

The url of the script (if any) that generates this node.