Overlay.highlightFrameHighlights 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.
| Name | Type | Description |
|---|---|---|
frameId | Page.FrameId | Identifier of the frame to highlight. |
contentColor (optional) | DOM.RGBA | The content box highlight fill color (default: transparent). |
contentOutlineColor (optional) | DOM.RGBA | The content box highlight outline color (default: transparent). |
{
"id": 1,
"method": "Overlay.highlightFrame",
"params": {
"frameId": "ABC123DEF456"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Overlay.highlightFrame', {"frameId": "ABC123DEF456"});
console.log(result);