← Back to Overlay domain

Overlay.getHighlightObjectForTest

For testing.

Domain: Overlay experimental

Parameters

NameTypeDescription
nodeIdDOM.NodeIdId of the node to get highlight object for.
includeDistance (optional)booleanWhether to include distance info.
includeStyle (optional)booleanWhether to include style info.
colorFormat (optional)ColorFormatThe color format to get config with (default: hex).
showAccessibilityInfo (optional)booleanWhether to show accessibility info (default: true).

Returns

NameTypeDescription
highlightobjectHighlight 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": {}}