Overlay.setInspectModeEnters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.
| Name | Type | Description |
|---|---|---|
mode | InspectMode | Set an inspection mode. |
highlightConfig (optional) | HighlightConfig | A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled == false`. |
{
"id": 1,
"method": "Overlay.setInspectMode",
"params": {
"mode": "mode-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Overlay.setInspectMode', {"mode": "mode-value"});
console.log(result);