highlightFrame method

  1. @Deprecated('This command is deprecated')
Future<void> highlightFrame(
  1. FrameId frameId, {
  2. RGBA? contentColor,
  3. RGBA? contentOutlineColor,
})

Highlights owner element of the frame with given id. Deprecated: Doesn't work reliablity and cannot be fixed due to process separatation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode. frameId Identifier of the frame to highlight. contentColor The content box highlight fill color (default: transparent). contentOutlineColor The content box highlight outline color (default: transparent).

Implementation

@Deprecated('This command is deprecated')
Future<void> highlightFrame(page.FrameId frameId,
    {dom.RGBA? contentColor, dom.RGBA? contentOutlineColor}) async {
  await _client.send('Overlay.highlightFrame', {
    'frameId': frameId,
    if (contentColor != null) 'contentColor': contentColor,
    if (contentOutlineColor != null)
      'contentOutlineColor': contentOutlineColor,
  });
}