mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
3.8 KiB
3.8 KiB
Home > puppeteer > Protocol > DOMSnapshot > NodeTreeSnapshot
Protocol.DOMSnapshot.NodeTreeSnapshot interface
Table containing nodes.
Signature:
export interface NodeTreeSnapshot
Properties
Property | Type | Description |
---|---|---|
attributes | ArrayOfStrings[] | Attributes of an Element node. Flatten name, value pairs. |
backendNodeId | DOM.BackendNodeId[] | Node 's id, corresponds to DOM.Node.backendNodeId. |
contentDocumentIndex | RareIntegerData | The index of the document in the list of the snapshot documents. |
currentSourceURL | RareStringData | The selected url for nodes with a srcset attribute. |
inputChecked | RareBooleanData | Only set for radio and checkbox input elements, indicates if the element has been checked |
inputValue | RareStringData | Only set for input elements, contains the input's associated text value. |
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. |
nodeName | StringIndex[] | Node 's nodeName. |
nodeType | integer[] | Node 's nodeType. |
nodeValue | StringIndex[] | Node 's nodeValue. |
optionSelected | RareBooleanData | Only set for option elements, indicates if the element has been selected |
originURL | RareStringData | The url of the script (if any) that generates this node. |
parentIndex | integer[] | Parent node index. |
pseudoType | RareStringData | Type of a pseudo element node. |
textValue | RareStringData | Only set for textarea elements, contains the text value. |