← 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
| Name | Type | Description |
path | string | Path to node in the proprietary format. |
Returns
| Name | Type | Description |
nodeId | NodeId | Id 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}