← Back to Overlay domain

Overlay.setInspectMode

Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.

Domain: Overlay experimental

Parameters

NameTypeDescription
modeInspectModeSet an inspection mode.
highlightConfig (optional)HighlightConfigA descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled == false`.

Example Request

{
  "id": 1,
  "method": "Overlay.setInspectMode",
  "params": {
    "mode": "mode-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Overlay.setInspectMode', {"mode": "mode-value"});
console.log(result);