← Back to DOM domain

DOM.pushNodeByPathToFrontend

Requests that the node is sent to the caller given its path. // FIXME, use XPath

Domain: DOM experimental

Parameters

NameTypeDescription
pathstringPath to node in the proprietary format.

Returns

NameTypeDescription
nodeIdNodeIdId of the node for given path.

Example Request

{
  "id": 1,
  "method": "DOM.pushNodeByPathToFrontend",
  "params": {
    "path": "path-value"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "nodeId": 3
  }
}

Usage in Node.js

const result = await send('DOM.pushNodeByPathToFrontend', {"path": "path-value"});
console.log(result);
// {"nodeId": 3}