Overlay.highlightNodeHighlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
| Name | Type | Description |
|---|---|---|
highlightConfig | HighlightConfig | A descriptor for the highlight appearance. |
nodeId (optional) | DOM.NodeId | Identifier of the node to highlight. |
backendNodeId (optional) | DOM.BackendNodeId | Identifier of the backend node to highlight. |
objectId (optional) | Runtime.RemoteObjectId | JavaScript object id of the node to be highlighted. |
selector (optional) | string | Selectors to highlight relevant nodes. |
{
"id": 1,
"method": "Overlay.highlightNode",
"params": {
"highlightConfig": "highlightConfig-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Overlay.highlightNode', {"highlightConfig": "highlightConfig-value"});
console.log(result);