Versions in this module Expand all Collapse all v0 v0.3.7 Mar 1, 2026 v0.3.5 Feb 27, 2026 v0.3.4 Feb 27, 2026 v0.3.3 Feb 27, 2026 v0.3.2 Feb 23, 2026 v0.3.1 Feb 22, 2026 v0.3.0 Feb 21, 2026 Changes in this version + const CommandDisable + const CommandEnable + const CommandGetGridHighlightObjectsForTest + const CommandGetHighlightObjectForTest + const CommandGetSourceOrderHighlightObjectForTest + const CommandHideHighlight + const CommandHighlightNode + const CommandHighlightQuad + const CommandHighlightRect + const CommandHighlightSourceOrder + const CommandSetInspectMode + const CommandSetPausedInDebuggerMessage + const CommandSetShowAdHighlights + const CommandSetShowContainerQueryOverlays + const CommandSetShowDebugBorders + const CommandSetShowFPSCounter + const CommandSetShowFlexOverlays + const CommandSetShowGridOverlays + const CommandSetShowHinge + const CommandSetShowIsolatedElements + const CommandSetShowLayoutShiftRegions + const CommandSetShowPaintRects + const CommandSetShowScrollBottleneckRects + const CommandSetShowScrollSnapOverlays + const CommandSetShowViewportSizeOnResize + const CommandSetShowWebVitals + const CommandSetShowWindowControlsOverlay + type BoxStyle struct + FillColor *cdp.RGBA + HatchColor *cdp.RGBA + type ColorFormat string + const ColorFormatHex + const ColorFormatHsl + const ColorFormatHwb + const ColorFormatRgb + func (t *ColorFormat) UnmarshalJSON(buf []byte) error + func (t ColorFormat) MarshalJSON() ([]byte, error) + func (t ColorFormat) String() string + type ContainerQueryContainerHighlightConfig struct + ContainerBorder *LineStyle + DescendantBorder *LineStyle + type ContainerQueryHighlightConfig struct + ContainerQueryContainerHighlightConfig *ContainerQueryContainerHighlightConfig + NodeID cdp.NodeID + type ContrastAlgorithm string + const ContrastAlgorithmAa + const ContrastAlgorithmAaa + const ContrastAlgorithmApca + func (t *ContrastAlgorithm) UnmarshalJSON(buf []byte) error + func (t ContrastAlgorithm) MarshalJSON() ([]byte, error) + func (t ContrastAlgorithm) String() string + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + type EventInspectModeCanceled struct + type EventInspectNodeRequested struct + BackendNodeID cdp.BackendNodeID + type EventNodeHighlightRequested struct + NodeID cdp.NodeID + type EventScreenshotRequested struct + Viewport *page.Viewport + type FlexContainerHighlightConfig struct + ColumnGapSpace *BoxStyle + ContainerBorder *LineStyle + CrossAlignment *LineStyle + CrossDistributedSpace *BoxStyle + ItemSeparator *LineStyle + LineSeparator *LineStyle + MainDistributedSpace *BoxStyle + RowGapSpace *BoxStyle + type FlexItemHighlightConfig struct + BaseSizeBorder *LineStyle + BaseSizeBox *BoxStyle + FlexibilityArrow *LineStyle + type FlexNodeHighlightConfig struct + FlexContainerHighlightConfig *FlexContainerHighlightConfig + NodeID cdp.NodeID + type GetGridHighlightObjectsForTestParams struct + NodeIDs []cdp.NodeID + func GetGridHighlightObjectsForTest(nodeIDs []cdp.NodeID) *GetGridHighlightObjectsForTestParams + func (p *GetGridHighlightObjectsForTestParams) Do(ctx context.Context) (highlights json.RawMessage, err error) + type GetGridHighlightObjectsForTestReturns struct + Highlights json.RawMessage + type GetHighlightObjectForTestParams struct + ColorFormat ColorFormat + IncludeDistance bool + IncludeStyle bool + NodeID cdp.NodeID + ShowAccessibilityInfo bool + func GetHighlightObjectForTest(nodeID cdp.NodeID) *GetHighlightObjectForTestParams + func (p *GetHighlightObjectForTestParams) Do(ctx context.Context) (highlight json.RawMessage, err error) + func (p GetHighlightObjectForTestParams) WithColorFormat(colorFormat ColorFormat) *GetHighlightObjectForTestParams + func (p GetHighlightObjectForTestParams) WithIncludeDistance(includeDistance bool) *GetHighlightObjectForTestParams + func (p GetHighlightObjectForTestParams) WithIncludeStyle(includeStyle bool) *GetHighlightObjectForTestParams + func (p GetHighlightObjectForTestParams) WithShowAccessibilityInfo(showAccessibilityInfo bool) *GetHighlightObjectForTestParams + type GetHighlightObjectForTestReturns struct + Highlight json.RawMessage + type GetSourceOrderHighlightObjectForTestParams struct + NodeID cdp.NodeID + func GetSourceOrderHighlightObjectForTest(nodeID cdp.NodeID) *GetSourceOrderHighlightObjectForTestParams + func (p *GetSourceOrderHighlightObjectForTestParams) Do(ctx context.Context) (highlight json.RawMessage, err error) + type GetSourceOrderHighlightObjectForTestReturns struct + Highlight json.RawMessage + type GridHighlightConfig struct + AreaBorderColor *cdp.RGBA + ColumnGapColor *cdp.RGBA + ColumnHatchColor *cdp.RGBA + ColumnLineColor *cdp.RGBA + ColumnLineDash bool + GridBackgroundColor *cdp.RGBA + GridBorderColor *cdp.RGBA + GridBorderDash bool + RowGapColor *cdp.RGBA + RowHatchColor *cdp.RGBA + RowLineColor *cdp.RGBA + RowLineDash bool + ShowAreaNames bool + ShowGridExtensionLines bool + ShowLineNames bool + ShowNegativeLineNumbers bool + ShowPositiveLineNumbers bool + ShowTrackSizes bool + type GridNodeHighlightConfig struct + GridHighlightConfig *GridHighlightConfig + NodeID cdp.NodeID + type HideHighlightParams struct + func HideHighlight() *HideHighlightParams + func (p *HideHighlightParams) Do(ctx context.Context) (err error) + type HighlightConfig struct + BorderColor *cdp.RGBA + CSSGridColor *cdp.RGBA + ColorFormat ColorFormat + ContainerQueryContainerHighlightConfig *ContainerQueryContainerHighlightConfig + ContentColor *cdp.RGBA + ContrastAlgorithm ContrastAlgorithm + EventTargetColor *cdp.RGBA + FlexContainerHighlightConfig *FlexContainerHighlightConfig + FlexItemHighlightConfig *FlexItemHighlightConfig + GridHighlightConfig *GridHighlightConfig + MarginColor *cdp.RGBA + PaddingColor *cdp.RGBA + ShapeColor *cdp.RGBA + ShapeMarginColor *cdp.RGBA + ShowAccessibilityInfo bool + ShowExtensionLines bool + ShowInfo bool + ShowRulers bool + ShowStyles bool + type HighlightNodeParams struct + BackendNodeID cdp.BackendNodeID + HighlightConfig *HighlightConfig + NodeID cdp.NodeID + ObjectID runtime.RemoteObjectID + Selector string + func HighlightNode(highlightConfig *HighlightConfig) *HighlightNodeParams + func (p *HighlightNodeParams) Do(ctx context.Context) (err error) + func (p HighlightNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightNodeParams + func (p HighlightNodeParams) WithNodeID(nodeID cdp.NodeID) *HighlightNodeParams + func (p HighlightNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightNodeParams + func (p HighlightNodeParams) WithSelector(selector string) *HighlightNodeParams + type HighlightQuadParams struct + Color *cdp.RGBA + OutlineColor *cdp.RGBA + Quad dom.Quad + func HighlightQuad(quad dom.Quad) *HighlightQuadParams + func (p *HighlightQuadParams) Do(ctx context.Context) (err error) + func (p HighlightQuadParams) WithColor(color *cdp.RGBA) *HighlightQuadParams + func (p HighlightQuadParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightQuadParams + type HighlightRectParams struct + Color *cdp.RGBA + Height int64 + OutlineColor *cdp.RGBA + Width int64 + X int64 + Y int64 + func HighlightRect(x int64, y int64, width int64, height int64) *HighlightRectParams + func (p *HighlightRectParams) Do(ctx context.Context) (err error) + func (p HighlightRectParams) WithColor(color *cdp.RGBA) *HighlightRectParams + func (p HighlightRectParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightRectParams + type HighlightSourceOrderParams struct + BackendNodeID cdp.BackendNodeID + NodeID cdp.NodeID + ObjectID runtime.RemoteObjectID + SourceOrderConfig *SourceOrderConfig + func HighlightSourceOrder(sourceOrderConfig *SourceOrderConfig) *HighlightSourceOrderParams + func (p *HighlightSourceOrderParams) Do(ctx context.Context) (err error) + func (p HighlightSourceOrderParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightSourceOrderParams + func (p HighlightSourceOrderParams) WithNodeID(nodeID cdp.NodeID) *HighlightSourceOrderParams + func (p HighlightSourceOrderParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightSourceOrderParams + type HingeConfig struct + ContentColor *cdp.RGBA + OutlineColor *cdp.RGBA + Rect *dom.Rect + type InspectMode string + const InspectModeCaptureAreaScreenshot + const InspectModeNone + const InspectModeSearchForNode + const InspectModeSearchForUAShadowDOM + const InspectModeShowDistances + func (t *InspectMode) UnmarshalJSON(buf []byte) error + func (t InspectMode) MarshalJSON() ([]byte, error) + func (t InspectMode) String() string + type IsolatedElementHighlightConfig struct + IsolationModeHighlightConfig *IsolationModeHighlightConfig + NodeID cdp.NodeID + type IsolationModeHighlightConfig struct + MaskColor *cdp.RGBA + ResizerColor *cdp.RGBA + ResizerHandleColor *cdp.RGBA + type LineStyle struct + Color *cdp.RGBA + Pattern LineStylePattern + type LineStylePattern string + const LineStylePatternDashed + const LineStylePatternDotted + func (t *LineStylePattern) UnmarshalJSON(buf []byte) error + func (t LineStylePattern) MarshalJSON() ([]byte, error) + func (t LineStylePattern) String() string + type ScrollSnapContainerHighlightConfig struct + ScrollMarginColor *cdp.RGBA + ScrollPaddingColor *cdp.RGBA + SnapAreaBorder *LineStyle + SnapportBorder *LineStyle + type ScrollSnapHighlightConfig struct + NodeID cdp.NodeID + ScrollSnapContainerHighlightConfig *ScrollSnapContainerHighlightConfig + type SetInspectModeParams struct + HighlightConfig *HighlightConfig + Mode InspectMode + func SetInspectMode(mode InspectMode) *SetInspectModeParams + func (p *SetInspectModeParams) Do(ctx context.Context) (err error) + func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams + type SetPausedInDebuggerMessageParams struct + Message string + func SetPausedInDebuggerMessage() *SetPausedInDebuggerMessageParams + func (p *SetPausedInDebuggerMessageParams) Do(ctx context.Context) (err error) + func (p SetPausedInDebuggerMessageParams) WithMessage(message string) *SetPausedInDebuggerMessageParams + type SetShowAdHighlightsParams struct + Show bool + func SetShowAdHighlights(show bool) *SetShowAdHighlightsParams + func (p *SetShowAdHighlightsParams) Do(ctx context.Context) (err error) + type SetShowContainerQueryOverlaysParams struct + ContainerQueryHighlightConfigs []*ContainerQueryHighlightConfig + func SetShowContainerQueryOverlays(containerQueryHighlightConfigs []*ContainerQueryHighlightConfig) *SetShowContainerQueryOverlaysParams + func (p *SetShowContainerQueryOverlaysParams) Do(ctx context.Context) (err error) + type SetShowDebugBordersParams struct + Show bool + func SetShowDebugBorders(show bool) *SetShowDebugBordersParams + func (p *SetShowDebugBordersParams) Do(ctx context.Context) (err error) + type SetShowFPSCounterParams struct + Show bool + func SetShowFPSCounter(show bool) *SetShowFPSCounterParams + func (p *SetShowFPSCounterParams) Do(ctx context.Context) (err error) + type SetShowFlexOverlaysParams struct + FlexNodeHighlightConfigs []*FlexNodeHighlightConfig + func SetShowFlexOverlays(flexNodeHighlightConfigs []*FlexNodeHighlightConfig) *SetShowFlexOverlaysParams + func (p *SetShowFlexOverlaysParams) Do(ctx context.Context) (err error) + type SetShowGridOverlaysParams struct + GridNodeHighlightConfigs []*GridNodeHighlightConfig + func SetShowGridOverlays(gridNodeHighlightConfigs []*GridNodeHighlightConfig) *SetShowGridOverlaysParams + func (p *SetShowGridOverlaysParams) Do(ctx context.Context) (err error) + type SetShowHingeParams struct + HingeConfig *HingeConfig + func SetShowHinge() *SetShowHingeParams + func (p *SetShowHingeParams) Do(ctx context.Context) (err error) + func (p SetShowHingeParams) WithHingeConfig(hingeConfig *HingeConfig) *SetShowHingeParams + type SetShowIsolatedElementsParams struct + IsolatedElementHighlightConfigs []*IsolatedElementHighlightConfig + func SetShowIsolatedElements(isolatedElementHighlightConfigs []*IsolatedElementHighlightConfig) *SetShowIsolatedElementsParams + func (p *SetShowIsolatedElementsParams) Do(ctx context.Context) (err error) + type SetShowLayoutShiftRegionsParams struct + Result bool + func SetShowLayoutShiftRegions(result bool) *SetShowLayoutShiftRegionsParams + func (p *SetShowLayoutShiftRegionsParams) Do(ctx context.Context) (err error) + type SetShowPaintRectsParams struct + Result bool + func SetShowPaintRects(result bool) *SetShowPaintRectsParams + func (p *SetShowPaintRectsParams) Do(ctx context.Context) (err error) + type SetShowScrollBottleneckRectsParams struct + Show bool + func SetShowScrollBottleneckRects(show bool) *SetShowScrollBottleneckRectsParams + func (p *SetShowScrollBottleneckRectsParams) Do(ctx context.Context) (err error) + type SetShowScrollSnapOverlaysParams struct + ScrollSnapHighlightConfigs []*ScrollSnapHighlightConfig + func SetShowScrollSnapOverlays(scrollSnapHighlightConfigs []*ScrollSnapHighlightConfig) *SetShowScrollSnapOverlaysParams + func (p *SetShowScrollSnapOverlaysParams) Do(ctx context.Context) (err error) + type SetShowViewportSizeOnResizeParams struct + Show bool + func SetShowViewportSizeOnResize(show bool) *SetShowViewportSizeOnResizeParams + func (p *SetShowViewportSizeOnResizeParams) Do(ctx context.Context) (err error) + type SetShowWebVitalsParams struct + Show bool + func SetShowWebVitals(show bool) *SetShowWebVitalsParams + func (p *SetShowWebVitalsParams) Do(ctx context.Context) (err error) + type SetShowWindowControlsOverlayParams struct + WindowControlsOverlayConfig *WindowControlsOverlayConfig + func SetShowWindowControlsOverlay() *SetShowWindowControlsOverlayParams + func (p *SetShowWindowControlsOverlayParams) Do(ctx context.Context) (err error) + func (p SetShowWindowControlsOverlayParams) WithWindowControlsOverlayConfig(windowControlsOverlayConfig *WindowControlsOverlayConfig) *SetShowWindowControlsOverlayParams + type SourceOrderConfig struct + ChildOutlineColor *cdp.RGBA + ParentOutlineColor *cdp.RGBA + type WindowControlsOverlayConfig struct + SelectedPlatform string + ShowCSS bool + ThemeColor string