← Back to Overlay domain
Overlay.getHighlightObjectForTest
For testing.
Domain: Overlay
experimental
Parameters
| Name | Type | Description |
nodeId | DOM.NodeId | Id of the node to get highlight object for. |
includeDistance (optional) | boolean | Whether to include distance info. |
includeStyle (optional) | boolean | Whether to include style info. |
colorFormat (optional) | ColorFormat | The color format to get config with (default: hex). |
showAccessibilityInfo (optional) | boolean | Whether to show accessibility info (default: true). |
Returns
| Name | Type | Description |
highlight | object | Highlight data for the node. |
Example Request
{
"id": 1,
"method": "Overlay.getHighlightObjectForTest",
"params": {
"nodeId": 1
}
}
Example Response
{
"id": 1,
"result": {
"highlight": {}
}
}
Usage in Node.js
const result = await send('Overlay.getHighlightObjectForTest', {"nodeId": 1});
console.log(result);
// {"highlight": {}}