DOM.describeNode

Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.

{
  "name": "describeNode",
  "parameters": [
    {
      "name": "nodeId",
      "$ref": "NodeId",
      "optional": true,
      "description": "Identifier of the node."
    },
    {
      "name": "backendNodeId",
      "$ref": "BackendNodeId",
      "optional": true,
      "description": "Identifier of the backend node."
    },
    {
      "name": "objectId",
      "$ref": "Runtime.RemoteObjectId",
      "optional": true,
      "description": "JavaScript object id of the node wrapper."
    },
    {
      "name": "depth",
      "type": "integer",
      "optional": true,
      "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0."
    },
    {
      "name": "pierce",
      "type": "boolean",
      "optional": true,
      "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false)."
    }
  ],
  "returns": [
    {
      "name": "node",
      "$ref": "Node",
      "description": "Node description."
    }
  ],
  "description": "Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation."
}