← Back to Overlay domain

Overlay.highlightFrame

Highlights owner element of the frame with given id. Deprecated: Doesn't work reliably and cannot be fixed due to process separation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.

Domain: Overlay deprecated

Parameters

NameTypeDescription
frameIdPage.FrameIdIdentifier of the frame to highlight.
contentColor (optional)DOM.RGBAThe content box highlight fill color (default: transparent).
contentOutlineColor (optional)DOM.RGBAThe content box highlight outline color (default: transparent).

Example Request

{
  "id": 1,
  "method": "Overlay.highlightFrame",
  "params": {
    "frameId": "ABC123DEF456"
  }
}

Example Response

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

Usage in Node.js

const result = await send('Overlay.highlightFrame', {"frameId": "ABC123DEF456"});
console.log(result);