Versions in this module Expand all Collapse all v0 v0.1.1 Oct 17, 2019 Changes in this version + const CommandCaptureSnapshot + const CommandDisable + const CommandEnable + type ArrayOfStrings []int64 + type CaptureSnapshotParams struct + ComputedStyles []string + IncludeDOMRects bool + IncludePaintOrder bool + func CaptureSnapshot(computedStyles []string) *CaptureSnapshotParams + func (p *CaptureSnapshotParams) Do(ctx context.Context) (documents []*DocumentSnapshot, strings []string, err error) + func (p CaptureSnapshotParams) WithIncludeDOMRects(includeDOMRects bool) *CaptureSnapshotParams + func (p CaptureSnapshotParams) WithIncludePaintOrder(includePaintOrder bool) *CaptureSnapshotParams + func (v *CaptureSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CaptureSnapshotParams) UnmarshalJSON(data []byte) error + func (v CaptureSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CaptureSnapshotParams) MarshalJSON() ([]byte, error) + type CaptureSnapshotReturns struct + Documents []*DocumentSnapshot + Strings []string + func (v *CaptureSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CaptureSnapshotReturns) UnmarshalJSON(data []byte) error + func (v CaptureSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v CaptureSnapshotReturns) MarshalJSON() ([]byte, error) + type ComputedStyle struct + Properties []*NameValue + func (v *ComputedStyle) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ComputedStyle) UnmarshalJSON(data []byte) error + func (v ComputedStyle) MarshalEasyJSON(w *jwriter.Writer) + func (v ComputedStyle) MarshalJSON() ([]byte, error) + type DOMNode struct + Attributes []*NameValue + BackendNodeID cdp.BackendNodeID + BaseURL string + ChildNodeIndexes []int64 + ContentDocumentIndex int64 + ContentLanguage string + CurrentSourceURL string + DocumentEncoding string + DocumentURL string + EventListeners []*domdebugger.EventListener + FrameID cdp.FrameID + InputChecked bool + InputValue string + IsClickable bool + LayoutNodeIndex int64 + NodeName string + NodeType cdp.NodeType + NodeValue string + OptionSelected bool + OriginURL string + PseudoElementIndexes []int64 + PseudoType cdp.PseudoType + PublicID string + ScrollOffsetX float64 + ScrollOffsetY float64 + ShadowRootType cdp.ShadowRootType + SystemID string + TextValue string + func (v *DOMNode) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DOMNode) UnmarshalJSON(data []byte) error + func (v DOMNode) MarshalEasyJSON(w *jwriter.Writer) + func (v DOMNode) MarshalJSON() ([]byte, error) + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DisableParams) UnmarshalJSON(data []byte) error + func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DisableParams) MarshalJSON() ([]byte, error) + type DocumentSnapshot struct + BaseURL StringIndex + ContentLanguage StringIndex + DocumentURL StringIndex + EncodingName StringIndex + FrameID StringIndex + Layout *LayoutTreeSnapshot + Nodes *NodeTreeSnapshot + PublicID StringIndex + ScrollOffsetX float64 + ScrollOffsetY float64 + SystemID StringIndex + TextBoxes *TextBoxSnapshot + func (v *DocumentSnapshot) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DocumentSnapshot) UnmarshalJSON(data []byte) error + func (v DocumentSnapshot) MarshalEasyJSON(w *jwriter.Writer) + func (v DocumentSnapshot) MarshalJSON() ([]byte, error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EnableParams) UnmarshalJSON(data []byte) error + func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EnableParams) MarshalJSON() ([]byte, error) + type InlineTextBox struct + BoundingBox *dom.Rect + NumCharacters int64 + StartCharacterIndex int64 + func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *InlineTextBox) UnmarshalJSON(data []byte) error + func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer) + func (v InlineTextBox) MarshalJSON() ([]byte, error) + type LayoutTreeNode struct + BoundingBox *dom.Rect + DomNodeIndex int64 + InlineTextNodes []*InlineTextBox + IsStackingContext bool + LayoutText string + PaintOrder int64 + StyleIndex int64 + func (v *LayoutTreeNode) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *LayoutTreeNode) UnmarshalJSON(data []byte) error + func (v LayoutTreeNode) MarshalEasyJSON(w *jwriter.Writer) + func (v LayoutTreeNode) MarshalJSON() ([]byte, error) + type LayoutTreeSnapshot struct + Bounds []Rectangle + ClientRects []Rectangle + NodeIndex []int64 + OffsetRects []Rectangle + PaintOrders []int64 + ScrollRects []Rectangle + StackingContexts *RareBooleanData + Styles []ArrayOfStrings + Text []StringIndex + func (v *LayoutTreeSnapshot) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *LayoutTreeSnapshot) UnmarshalJSON(data []byte) error + func (v LayoutTreeSnapshot) MarshalEasyJSON(w *jwriter.Writer) + func (v LayoutTreeSnapshot) MarshalJSON() ([]byte, error) + type NameValue struct + Name string + Value string + func (v *NameValue) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *NameValue) UnmarshalJSON(data []byte) error + func (v NameValue) MarshalEasyJSON(w *jwriter.Writer) + func (v NameValue) MarshalJSON() ([]byte, error) + type NodeTreeSnapshot struct + Attributes []ArrayOfStrings + BackendNodeID []cdp.BackendNodeID + ContentDocumentIndex *RareIntegerData + CurrentSourceURL *RareStringData + InputChecked *RareBooleanData + InputValue *RareStringData + IsClickable *RareBooleanData + NodeName []StringIndex + NodeType []int64 + NodeValue []StringIndex + OptionSelected *RareBooleanData + OriginURL *RareStringData + ParentIndex []int64 + PseudoType *RareStringData + TextValue *RareStringData + func (v *NodeTreeSnapshot) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *NodeTreeSnapshot) UnmarshalJSON(data []byte) error + func (v NodeTreeSnapshot) MarshalEasyJSON(w *jwriter.Writer) + func (v NodeTreeSnapshot) MarshalJSON() ([]byte, error) + type RareBooleanData struct + Index []int64 + func (v *RareBooleanData) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RareBooleanData) UnmarshalJSON(data []byte) error + func (v RareBooleanData) MarshalEasyJSON(w *jwriter.Writer) + func (v RareBooleanData) MarshalJSON() ([]byte, error) + type RareIntegerData struct + Index []int64 + Value []int64 + func (v *RareIntegerData) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RareIntegerData) UnmarshalJSON(data []byte) error + func (v RareIntegerData) MarshalEasyJSON(w *jwriter.Writer) + func (v RareIntegerData) MarshalJSON() ([]byte, error) + type RareStringData struct + Index []int64 + Value []StringIndex + func (v *RareStringData) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RareStringData) UnmarshalJSON(data []byte) error + func (v RareStringData) MarshalEasyJSON(w *jwriter.Writer) + func (v RareStringData) MarshalJSON() ([]byte, error) + type Rectangle []float64 + type StringIndex int64 + func (t StringIndex) Int64() int64 + type TextBoxSnapshot struct + Bounds []Rectangle + LayoutIndex []int64 + Length []int64 + Start []int64 + func (v *TextBoxSnapshot) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TextBoxSnapshot) UnmarshalJSON(data []byte) error + func (v TextBoxSnapshot) MarshalEasyJSON(w *jwriter.Writer) + func (v TextBoxSnapshot) MarshalJSON() ([]byte, error)