DOMSnapshot.DOMNode

A Node in the DOM tree.

{
  "id": "DOMNode",
  "type": "object",
  "properties": [
    {
      "name": "nodeType",
      "type": "integer",
      "description": "Node's nodeType."
    },
    {
      "name": "nodeName",
      "type": "string",
      "description": "Node's nodeName."
    },
    {
      "name": "nodeValue",
      "type": "string",
      "description": "Node's nodeValue."
    },
    {
      "name": "textValue",
      "type": "string",
      "optional": true,
      "description": "Only set for textarea elements, contains the text value."
    },
    {
      "name": "inputValue",
      "type": "string",
      "optional": true,
      "description": "Only set for input elements, contains the input's associated text value."
    },
    {
      "name": "inputChecked",
      "type": "boolean",
      "optional": true,
      "description": "Only set for radio and checkbox input elements, indicates if the element has been checked"
    },
    {
      "name": "optionSelected",
      "type": "boolean",
      "optional": true,
      "description": "Only set for option elements, indicates if the element has been selected"
    },
    {
      "name": "backendNodeId",
      "$ref": "DOM.BackendNodeId",
      "description": "Node's id, corresponds to DOM.Node.backendNodeId."
    },
    {
      "name": "childNodeIndexes",
      "type": "array",
      "items": {
        "type": "integer"
      },
      "optional": true,
      "description": "The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any."
    },
    {
      "name": "attributes",
      "type": "array",
      "items": {
        "$ref": "NameValue"
      },
      "optional": true,
      "description": "Attributes of an Element node."
    },
    {
      "name": "pseudoElementIndexes",
      "type": "array",
      "items": {
        "type": "integer"
      },
      "optional": true,
      "description": "Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any."
    },
    {
      "name": "layoutNodeIndex",
      "type": "integer",
      "optional": true,
      "description": "The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any."
    },
    {
      "name": "documentURL",
      "type": "string",
      "optional": true,
      "description": "Document URL that Document or FrameOwner node points to."
    },
    {
      "name": "baseURL",
      "type": "string",
      "optional": true,
      "description": "Base URL that Document or FrameOwner node uses for URL completion."
    },
    {
      "name": "contentLanguage",
      "type": "string",
      "optional": true,
      "description": "Only set for documents, contains the document's content language."
    },
    {
      "name": "documentEncoding",
      "type": "string",
      "optional": true,
      "description": "Only set for documents, contains the document's character set encoding."
    },
    {
      "name": "publicId",
      "type": "string",
      "optional": true,
      "description": "DocumentType node's publicId."
    },
    {
      "name": "systemId",
      "type": "string",
      "optional": true,
      "description": "DocumentType node's systemId."
    },
    {
      "name": "frameId",
      "$ref": "Page.FrameId",
      "optional": true,
      "description": "Frame ID for frame owner elements and also for the document node."
    },
    {
      "name": "contentDocumentIndex",
      "type": "integer",
      "optional": true,
      "description": "The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any."
    },
    {
      "name": "importedDocumentIndex",
      "type": "integer",
      "optional": true,
      "description": "Index of the imported document's node of a link element in the domNodes array returned by getSnapshot, if any."
    },
    {
      "name": "templateContentIndex",
      "type": "integer",
      "optional": true,
      "description": "Index of the content node of a template element in the domNodes array returned by getSnapshot."
    },
    {
      "name": "pseudoType",
      "$ref": "DOM.PseudoType",
      "optional": true,
      "description": "Type of a pseudo element node."
    },
    {
      "name": "isClickable",
      "type": "boolean",
      "optional": true,
      "description": "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."
    }
  ],
  "description": "A Node in the DOM tree."
}