DOM.setInspectedNodeEnables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
| Name | Type | Description |
|---|---|---|
nodeId | NodeId | DOM node id to be accessible by means of $x command line API. |
{
"id": 1,
"method": "DOM.setInspectedNode",
"params": {
"nodeId": 1
}
}
{
"id": 1,
"result": {}
}
const result = await send('DOM.setInspectedNode', {"nodeId": 1});
console.log(result);