Documentation ¶
Overview ¶
Package dom provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOM domain.
This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that iframe owner elements will return corresponding document elements as their child nodes.</p>.
Generated by the chromedp-gen command.
Index ¶
- Variables
- type BoxModel
- type CollectClassNamesFromSubtreeParams
- func (p *CollectClassNamesFromSubtreeParams) Do(ctxt context.Context, h cdp.FrameHandler) (classNames []string, err error)
- func (v CollectClassNamesFromSubtreeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CollectClassNamesFromSubtreeParams) MarshalJSON() ([]byte, error)
- func (v *CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CollectClassNamesFromSubtreeParams) UnmarshalJSON(data []byte) error
- type CollectClassNamesFromSubtreeReturns
- func (v CollectClassNamesFromSubtreeReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v CollectClassNamesFromSubtreeReturns) MarshalJSON() ([]byte, error)
- func (v *CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CollectClassNamesFromSubtreeReturns) UnmarshalJSON(data []byte) error
- type CopyToParams
- func (p *CopyToParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v CopyToParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CopyToParams) MarshalJSON() ([]byte, error)
- func (v *CopyToParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CopyToParams) UnmarshalJSON(data []byte) error
- func (p CopyToParams) WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *CopyToParams
- type CopyToReturns
- type DisableParams
- func (p *DisableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisableParams) MarshalJSON() ([]byte, error)
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisableParams) UnmarshalJSON(data []byte) error
- type DiscardSearchResultsParams
- func (p *DiscardSearchResultsParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v DiscardSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DiscardSearchResultsParams) MarshalJSON() ([]byte, error)
- func (v *DiscardSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DiscardSearchResultsParams) UnmarshalJSON(data []byte) error
- type EnableParams
- func (p *EnableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v EnableParams) MarshalJSON() ([]byte, error)
- func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EnableParams) UnmarshalJSON(data []byte) error
- type EventAttributeModified
- type EventAttributeRemoved
- type EventCharacterDataModified
- type EventChildNodeCountUpdated
- type EventChildNodeInserted
- type EventChildNodeRemoved
- type EventDistributedNodesUpdated
- type EventDocumentUpdated
- type EventInlineStyleInvalidated
- type EventInspectNodeRequested
- type EventNodeHighlightRequested
- type EventPseudoElementAdded
- type EventPseudoElementRemoved
- type EventSetChildNodes
- type EventShadowRootPopped
- type EventShadowRootPushed
- type FocusParams
- type GetAttributesParams
- func (p *GetAttributesParams) Do(ctxt context.Context, h cdp.FrameHandler) (attributes []string, err error)
- func (v GetAttributesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetAttributesParams) MarshalJSON() ([]byte, error)
- func (v *GetAttributesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetAttributesParams) UnmarshalJSON(data []byte) error
- type GetAttributesReturns
- type GetBoxModelParams
- func (p *GetBoxModelParams) Do(ctxt context.Context, h cdp.FrameHandler) (model *BoxModel, err error)
- func (v GetBoxModelParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetBoxModelParams) MarshalJSON() ([]byte, error)
- func (v *GetBoxModelParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetBoxModelParams) UnmarshalJSON(data []byte) error
- type GetBoxModelReturns
- type GetDocumentParams
- func (p *GetDocumentParams) Do(ctxt context.Context, h cdp.FrameHandler) (root *cdp.Node, err error)
- func (v GetDocumentParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetDocumentParams) MarshalJSON() ([]byte, error)
- func (v *GetDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetDocumentParams) UnmarshalJSON(data []byte) error
- func (p GetDocumentParams) WithDepth(depth int64) *GetDocumentParams
- func (p GetDocumentParams) WithPierce(pierce bool) *GetDocumentParams
- type GetDocumentReturns
- type GetHighlightObjectForTestParams
- func (p *GetHighlightObjectForTestParams) Do(ctxt context.Context, h cdp.FrameHandler) (highlight easyjson.RawMessage, err error)
- func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error)
- func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error
- type GetHighlightObjectForTestReturns
- func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error)
- func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error
- type GetNodeForLocationParams
- func (p *GetNodeForLocationParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v GetNodeForLocationParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetNodeForLocationParams) MarshalJSON() ([]byte, error)
- func (v *GetNodeForLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetNodeForLocationParams) UnmarshalJSON(data []byte) error
- type GetNodeForLocationReturns
- type GetOuterHTMLParams
- func (p *GetOuterHTMLParams) Do(ctxt context.Context, h cdp.FrameHandler) (outerHTML string, err error)
- func (v GetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetOuterHTMLParams) MarshalJSON() ([]byte, error)
- func (v *GetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetOuterHTMLParams) UnmarshalJSON(data []byte) error
- type GetOuterHTMLReturns
- type GetRelayoutBoundaryParams
- func (p *GetRelayoutBoundaryParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v GetRelayoutBoundaryParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetRelayoutBoundaryParams) MarshalJSON() ([]byte, error)
- func (v *GetRelayoutBoundaryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetRelayoutBoundaryParams) UnmarshalJSON(data []byte) error
- type GetRelayoutBoundaryReturns
- type GetSearchResultsParams
- func (p *GetSearchResultsParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeIds []cdp.NodeID, err error)
- func (v GetSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetSearchResultsParams) MarshalJSON() ([]byte, error)
- func (v *GetSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetSearchResultsParams) UnmarshalJSON(data []byte) error
- type GetSearchResultsReturns
- type HideHighlightParams
- func (p *HideHighlightParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HideHighlightParams) MarshalJSON() ([]byte, error)
- func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HideHighlightParams) UnmarshalJSON(data []byte) error
- type HighlightConfig
- type HighlightFrameParams
- func (p *HighlightFrameParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightFrameParams) MarshalJSON() ([]byte, error)
- func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error
- func (p HighlightFrameParams) WithContentColor(contentColor *cdp.RGBA) *HighlightFrameParams
- func (p HighlightFrameParams) WithContentOutlineColor(contentOutlineColor *cdp.RGBA) *HighlightFrameParams
- type HighlightNodeParams
- func (p *HighlightNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightNodeParams) MarshalJSON() ([]byte, error)
- func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightNodeParams) UnmarshalJSON(data []byte) 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
- type HighlightQuadParams
- func (p *HighlightQuadParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightQuadParams) MarshalJSON() ([]byte, error)
- func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error
- func (p HighlightQuadParams) WithColor(color *cdp.RGBA) *HighlightQuadParams
- func (p HighlightQuadParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightQuadParams
- type HighlightRectParams
- func (p *HighlightRectParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightRectParams) MarshalJSON() ([]byte, error)
- func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightRectParams) UnmarshalJSON(data []byte) error
- func (p HighlightRectParams) WithColor(color *cdp.RGBA) *HighlightRectParams
- func (p HighlightRectParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightRectParams
- type InspectMode
- type MarkUndoableStateParams
- func (p *MarkUndoableStateParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v MarkUndoableStateParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v MarkUndoableStateParams) MarshalJSON() ([]byte, error)
- func (v *MarkUndoableStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *MarkUndoableStateParams) UnmarshalJSON(data []byte) error
- type MoveToParams
- func (p *MoveToParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v MoveToParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v MoveToParams) MarshalJSON() ([]byte, error)
- func (v *MoveToParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *MoveToParams) UnmarshalJSON(data []byte) error
- func (p MoveToParams) WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *MoveToParams
- type MoveToReturns
- type PerformSearchParams
- func (p *PerformSearchParams) Do(ctxt context.Context, h cdp.FrameHandler) (searchID string, resultCount int64, err error)
- func (v PerformSearchParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v PerformSearchParams) MarshalJSON() ([]byte, error)
- func (v *PerformSearchParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *PerformSearchParams) UnmarshalJSON(data []byte) error
- func (p PerformSearchParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *PerformSearchParams
- type PerformSearchReturns
- type PushNodeByPathToFrontendParams
- func (p *PushNodeByPathToFrontendParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v PushNodeByPathToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v PushNodeByPathToFrontendParams) MarshalJSON() ([]byte, error)
- func (v *PushNodeByPathToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *PushNodeByPathToFrontendParams) UnmarshalJSON(data []byte) error
- type PushNodeByPathToFrontendReturns
- type PushNodesByBackendIdsToFrontendParams
- func (p *PushNodesByBackendIdsToFrontendParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeIds []cdp.NodeID, err error)
- func (v PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v PushNodesByBackendIdsToFrontendParams) MarshalJSON() ([]byte, error)
- func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalJSON(data []byte) error
- type PushNodesByBackendIdsToFrontendReturns
- func (v PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v PushNodesByBackendIdsToFrontendReturns) MarshalJSON() ([]byte, error)
- func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON(data []byte) error
- type Quad
- type QuerySelectorAllParams
- func (p *QuerySelectorAllParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeIds []cdp.NodeID, err error)
- func (v QuerySelectorAllParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v QuerySelectorAllParams) MarshalJSON() ([]byte, error)
- func (v *QuerySelectorAllParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *QuerySelectorAllParams) UnmarshalJSON(data []byte) error
- type QuerySelectorAllReturns
- type QuerySelectorParams
- func (p *QuerySelectorParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v QuerySelectorParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v QuerySelectorParams) MarshalJSON() ([]byte, error)
- func (v *QuerySelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *QuerySelectorParams) UnmarshalJSON(data []byte) error
- type QuerySelectorReturns
- type Rect
- type RedoParams
- type RemoveAttributeParams
- func (p *RemoveAttributeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v RemoveAttributeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RemoveAttributeParams) MarshalJSON() ([]byte, error)
- func (v *RemoveAttributeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RemoveAttributeParams) UnmarshalJSON(data []byte) error
- type RemoveNodeParams
- func (p *RemoveNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v RemoveNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RemoveNodeParams) MarshalJSON() ([]byte, error)
- func (v *RemoveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RemoveNodeParams) UnmarshalJSON(data []byte) error
- type RequestChildNodesParams
- func (p *RequestChildNodesParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v RequestChildNodesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RequestChildNodesParams) MarshalJSON() ([]byte, error)
- func (v *RequestChildNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RequestChildNodesParams) UnmarshalJSON(data []byte) error
- func (p RequestChildNodesParams) WithDepth(depth int64) *RequestChildNodesParams
- func (p RequestChildNodesParams) WithPierce(pierce bool) *RequestChildNodesParams
- type RequestNodeParams
- func (p *RequestNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v RequestNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RequestNodeParams) MarshalJSON() ([]byte, error)
- func (v *RequestNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RequestNodeParams) UnmarshalJSON(data []byte) error
- type RequestNodeReturns
- type ResolveNodeParams
- func (p *ResolveNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (object *runtime.RemoteObject, err error)
- func (v ResolveNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ResolveNodeParams) MarshalJSON() ([]byte, error)
- func (v *ResolveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ResolveNodeParams) UnmarshalJSON(data []byte) error
- func (p ResolveNodeParams) WithObjectGroup(objectGroup string) *ResolveNodeParams
- type ResolveNodeReturns
- type SetAttributeValueParams
- func (p *SetAttributeValueParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetAttributeValueParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetAttributeValueParams) MarshalJSON() ([]byte, error)
- func (v *SetAttributeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetAttributeValueParams) UnmarshalJSON(data []byte) error
- type SetAttributesAsTextParams
- func (p *SetAttributesAsTextParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetAttributesAsTextParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetAttributesAsTextParams) MarshalJSON() ([]byte, error)
- func (v *SetAttributesAsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetAttributesAsTextParams) UnmarshalJSON(data []byte) error
- func (p SetAttributesAsTextParams) WithName(name string) *SetAttributesAsTextParams
- type SetFileInputFilesParams
- func (p *SetFileInputFilesParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetFileInputFilesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetFileInputFilesParams) MarshalJSON() ([]byte, error)
- func (v *SetFileInputFilesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetFileInputFilesParams) UnmarshalJSON(data []byte) error
- type SetInspectModeParams
- func (p *SetInspectModeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetInspectModeParams) MarshalJSON() ([]byte, error)
- func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error
- func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams
- type SetInspectedNodeParams
- func (p *SetInspectedNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetInspectedNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetInspectedNodeParams) MarshalJSON() ([]byte, error)
- func (v *SetInspectedNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetInspectedNodeParams) UnmarshalJSON(data []byte) error
- type SetNodeNameParams
- func (p *SetNodeNameParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
- func (v SetNodeNameParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetNodeNameParams) MarshalJSON() ([]byte, error)
- func (v *SetNodeNameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetNodeNameParams) UnmarshalJSON(data []byte) error
- type SetNodeNameReturns
- type SetNodeValueParams
- func (p *SetNodeValueParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetNodeValueParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetNodeValueParams) MarshalJSON() ([]byte, error)
- func (v *SetNodeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetNodeValueParams) UnmarshalJSON(data []byte) error
- type SetOuterHTMLParams
- func (p *SetOuterHTMLParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetOuterHTMLParams) MarshalJSON() ([]byte, error)
- func (v *SetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetOuterHTMLParams) UnmarshalJSON(data []byte) error
- type ShapeOutsideInfo
- type UndoParams
Constants ¶
This section is empty.
Variables ¶
var EventTypes = []cdp.MethodType{ cdp.EventDOMDocumentUpdated, cdp.EventDOMInspectNodeRequested, cdp.EventDOMSetChildNodes, cdp.EventDOMAttributeModified, cdp.EventDOMAttributeRemoved, cdp.EventDOMInlineStyleInvalidated, cdp.EventDOMCharacterDataModified, cdp.EventDOMChildNodeCountUpdated, cdp.EventDOMChildNodeInserted, cdp.EventDOMChildNodeRemoved, cdp.EventDOMShadowRootPushed, cdp.EventDOMShadowRootPopped, cdp.EventDOMPseudoElementAdded, cdp.EventDOMPseudoElementRemoved, cdp.EventDOMDistributedNodesUpdated, cdp.EventDOMNodeHighlightRequested, }
EventTypes all event types in the domain.
Functions ¶
This section is empty.
Types ¶
type BoxModel ¶
type BoxModel struct { Content Quad `json:"content,omitempty"` // Content box Padding Quad `json:"padding,omitempty"` // Padding box Border Quad `json:"border,omitempty"` // Border box Margin Quad `json:"margin,omitempty"` // Margin box Width int64 `json:"width,omitempty"` // Node width Height int64 `json:"height,omitempty"` // Node height ShapeOutside *ShapeOutsideInfo `json:"shapeOutside,omitempty"` // Shape outside coordinates }
BoxModel box model.
func (BoxModel) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (BoxModel) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*BoxModel) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BoxModel) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CollectClassNamesFromSubtreeParams ¶
type CollectClassNamesFromSubtreeParams struct {
NodeID cdp.NodeID `json:"nodeId"` // Id of the node to collect class names.
}
CollectClassNamesFromSubtreeParams collects class names for the node with given id and all of it's child nodes.
func CollectClassNamesFromSubtree ¶
func CollectClassNamesFromSubtree(nodeID cdp.NodeID) *CollectClassNamesFromSubtreeParams
CollectClassNamesFromSubtree collects class names for the node with given id and all of it's child nodes.
parameters:
nodeID - Id of the node to collect class names.
func (*CollectClassNamesFromSubtreeParams) Do ¶
func (p *CollectClassNamesFromSubtreeParams) Do(ctxt context.Context, h cdp.FrameHandler) (classNames []string, err error)
Do executes DOM.collectClassNamesFromSubtree.
returns:
classNames - Class name list.
func (CollectClassNamesFromSubtreeParams) MarshalEasyJSON ¶
func (v CollectClassNamesFromSubtreeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CollectClassNamesFromSubtreeParams) MarshalJSON ¶
func (v CollectClassNamesFromSubtreeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON ¶
func (v *CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CollectClassNamesFromSubtreeParams) UnmarshalJSON ¶
func (v *CollectClassNamesFromSubtreeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CollectClassNamesFromSubtreeReturns ¶
type CollectClassNamesFromSubtreeReturns struct {
ClassNames []string `json:"classNames,omitempty"` // Class name list.
}
CollectClassNamesFromSubtreeReturns return values.
func (CollectClassNamesFromSubtreeReturns) MarshalEasyJSON ¶
func (v CollectClassNamesFromSubtreeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CollectClassNamesFromSubtreeReturns) MarshalJSON ¶
func (v CollectClassNamesFromSubtreeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON ¶
func (v *CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CollectClassNamesFromSubtreeReturns) UnmarshalJSON ¶
func (v *CollectClassNamesFromSubtreeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CopyToParams ¶
type CopyToParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to copy. TargetNodeID cdp.NodeID `json:"targetNodeId"` // Id of the element to drop the copy into. InsertBeforeNodeID cdp.NodeID `json:"insertBeforeNodeId,omitempty"` // Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId). }
CopyToParams creates a deep copy of the specified node and places it into the target container before the given anchor.
func CopyTo ¶
func CopyTo(nodeID cdp.NodeID, targetNodeID cdp.NodeID) *CopyToParams
CopyTo creates a deep copy of the specified node and places it into the target container before the given anchor.
parameters:
nodeID - Id of the node to copy. targetNodeID - Id of the element to drop the copy into.
func (*CopyToParams) Do ¶
func (p *CopyToParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.copyTo.
returns:
nodeID - Id of the node clone.
func (CopyToParams) MarshalEasyJSON ¶
func (v CopyToParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CopyToParams) MarshalJSON ¶
func (v CopyToParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CopyToParams) UnmarshalEasyJSON ¶
func (v *CopyToParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CopyToParams) UnmarshalJSON ¶
func (v *CopyToParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (CopyToParams) WithInsertBeforeNodeID ¶
func (p CopyToParams) WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *CopyToParams
WithInsertBeforeNodeID drop the copy before this node (if absent, the copy becomes the last child of targetNodeId).
type CopyToReturns ¶
CopyToReturns return values.
func (CopyToReturns) MarshalEasyJSON ¶
func (v CopyToReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CopyToReturns) MarshalJSON ¶
func (v CopyToReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CopyToReturns) UnmarshalEasyJSON ¶
func (v *CopyToReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CopyToReturns) UnmarshalJSON ¶
func (v *CopyToReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams ¶
type DisableParams struct{}
DisableParams disables DOM agent for the given page.
func (*DisableParams) Do ¶
func (p *DisableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.disable.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DiscardSearchResultsParams ¶
type DiscardSearchResultsParams struct {
SearchID string `json:"searchId"` // Unique search session identifier.
}
DiscardSearchResultsParams discards search results from the session with the given id. getSearchResults should no longer be called for that search.
func DiscardSearchResults ¶
func DiscardSearchResults(searchID string) *DiscardSearchResultsParams
DiscardSearchResults discards search results from the session with the given id. getSearchResults should no longer be called for that search.
parameters:
searchID - Unique search session identifier.
func (*DiscardSearchResultsParams) Do ¶
func (p *DiscardSearchResultsParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.discardSearchResults.
func (DiscardSearchResultsParams) MarshalEasyJSON ¶
func (v DiscardSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DiscardSearchResultsParams) MarshalJSON ¶
func (v DiscardSearchResultsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DiscardSearchResultsParams) UnmarshalEasyJSON ¶
func (v *DiscardSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DiscardSearchResultsParams) UnmarshalJSON ¶
func (v *DiscardSearchResultsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enables DOM agent for the given page.
func (*EnableParams) Do ¶
func (p *EnableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.enable.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAttributeModified ¶
type EventAttributeModified struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node that has changed. Name string `json:"name,omitempty"` // Attribute name. Value string `json:"value,omitempty"` // Attribute value. }
EventAttributeModified fired when Element's attribute is modified.
func (EventAttributeModified) MarshalEasyJSON ¶
func (v EventAttributeModified) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAttributeModified) MarshalJSON ¶
func (v EventAttributeModified) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAttributeModified) UnmarshalEasyJSON ¶
func (v *EventAttributeModified) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAttributeModified) UnmarshalJSON ¶
func (v *EventAttributeModified) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAttributeRemoved ¶
type EventAttributeRemoved struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node that has changed. Name string `json:"name,omitempty"` // A ttribute name. }
EventAttributeRemoved fired when Element's attribute is removed.
func (EventAttributeRemoved) MarshalEasyJSON ¶
func (v EventAttributeRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAttributeRemoved) MarshalJSON ¶
func (v EventAttributeRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAttributeRemoved) UnmarshalEasyJSON ¶
func (v *EventAttributeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAttributeRemoved) UnmarshalJSON ¶
func (v *EventAttributeRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventCharacterDataModified ¶
type EventCharacterDataModified struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node that has changed. CharacterData string `json:"characterData,omitempty"` // New text value. }
EventCharacterDataModified mirrors DOMCharacterDataModified event.
func (EventCharacterDataModified) MarshalEasyJSON ¶
func (v EventCharacterDataModified) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventCharacterDataModified) MarshalJSON ¶
func (v EventCharacterDataModified) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventCharacterDataModified) UnmarshalEasyJSON ¶
func (v *EventCharacterDataModified) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventCharacterDataModified) UnmarshalJSON ¶
func (v *EventCharacterDataModified) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventChildNodeCountUpdated ¶
type EventChildNodeCountUpdated struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node that has changed. ChildNodeCount int64 `json:"childNodeCount,omitempty"` // New node count. }
EventChildNodeCountUpdated fired when Container's child node count has changed.
func (EventChildNodeCountUpdated) MarshalEasyJSON ¶
func (v EventChildNodeCountUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventChildNodeCountUpdated) MarshalJSON ¶
func (v EventChildNodeCountUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventChildNodeCountUpdated) UnmarshalEasyJSON ¶
func (v *EventChildNodeCountUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventChildNodeCountUpdated) UnmarshalJSON ¶
func (v *EventChildNodeCountUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventChildNodeInserted ¶
type EventChildNodeInserted struct { ParentNodeID cdp.NodeID `json:"parentNodeId,omitempty"` // Id of the node that has changed. PreviousNodeID cdp.NodeID `json:"previousNodeId,omitempty"` // If of the previous siblint. Node *cdp.Node `json:"node,omitempty"` // Inserted node data. }
EventChildNodeInserted mirrors DOMNodeInserted event.
func (EventChildNodeInserted) MarshalEasyJSON ¶
func (v EventChildNodeInserted) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventChildNodeInserted) MarshalJSON ¶
func (v EventChildNodeInserted) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventChildNodeInserted) UnmarshalEasyJSON ¶
func (v *EventChildNodeInserted) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventChildNodeInserted) UnmarshalJSON ¶
func (v *EventChildNodeInserted) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventChildNodeRemoved ¶
type EventChildNodeRemoved struct { ParentNodeID cdp.NodeID `json:"parentNodeId,omitempty"` // Parent id. NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node that has been removed. }
EventChildNodeRemoved mirrors DOMNodeRemoved event.
func (EventChildNodeRemoved) MarshalEasyJSON ¶
func (v EventChildNodeRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventChildNodeRemoved) MarshalJSON ¶
func (v EventChildNodeRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventChildNodeRemoved) UnmarshalEasyJSON ¶
func (v *EventChildNodeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventChildNodeRemoved) UnmarshalJSON ¶
func (v *EventChildNodeRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventDistributedNodesUpdated ¶
type EventDistributedNodesUpdated struct { InsertionPointID cdp.NodeID `json:"insertionPointId,omitempty"` // Insertion point where distrubuted nodes were updated. DistributedNodes []*cdp.BackendNode `json:"distributedNodes,omitempty"` // Distributed nodes for given insertion point. }
EventDistributedNodesUpdated called when distrubution is changed.
func (EventDistributedNodesUpdated) MarshalEasyJSON ¶
func (v EventDistributedNodesUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDistributedNodesUpdated) MarshalJSON ¶
func (v EventDistributedNodesUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDistributedNodesUpdated) UnmarshalEasyJSON ¶
func (v *EventDistributedNodesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDistributedNodesUpdated) UnmarshalJSON ¶
func (v *EventDistributedNodesUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventDocumentUpdated ¶
type EventDocumentUpdated struct{}
EventDocumentUpdated fired when Document has been totally updated. Node ids are no longer valid.
func (EventDocumentUpdated) MarshalEasyJSON ¶
func (v EventDocumentUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDocumentUpdated) MarshalJSON ¶
func (v EventDocumentUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDocumentUpdated) UnmarshalEasyJSON ¶
func (v *EventDocumentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDocumentUpdated) UnmarshalJSON ¶
func (v *EventDocumentUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventInlineStyleInvalidated ¶
type EventInlineStyleInvalidated struct {
NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Ids of the nodes for which the inline styles have been invalidated.
}
EventInlineStyleInvalidated fired when Element's inline style is modified via a CSS property modification.
func (EventInlineStyleInvalidated) MarshalEasyJSON ¶
func (v EventInlineStyleInvalidated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventInlineStyleInvalidated) MarshalJSON ¶
func (v EventInlineStyleInvalidated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventInlineStyleInvalidated) UnmarshalEasyJSON ¶
func (v *EventInlineStyleInvalidated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventInlineStyleInvalidated) UnmarshalJSON ¶
func (v *EventInlineStyleInvalidated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventInspectNodeRequested ¶
type EventInspectNodeRequested struct {
BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Id of the node to inspect.
}
EventInspectNodeRequested fired when the node should be inspected. This happens after call to setInspectMode.
func (EventInspectNodeRequested) MarshalEasyJSON ¶
func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventInspectNodeRequested) MarshalJSON ¶
func (v EventInspectNodeRequested) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventInspectNodeRequested) UnmarshalEasyJSON ¶
func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventInspectNodeRequested) UnmarshalJSON ¶
func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventNodeHighlightRequested ¶
EventNodeHighlightRequested [no description].
func (EventNodeHighlightRequested) MarshalEasyJSON ¶
func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventNodeHighlightRequested) MarshalJSON ¶
func (v EventNodeHighlightRequested) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventNodeHighlightRequested) UnmarshalEasyJSON ¶
func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventNodeHighlightRequested) UnmarshalJSON ¶
func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventPseudoElementAdded ¶
type EventPseudoElementAdded struct { ParentID cdp.NodeID `json:"parentId,omitempty"` // Pseudo element's parent element id. PseudoElement *cdp.Node `json:"pseudoElement,omitempty"` // The added pseudo element. }
EventPseudoElementAdded called when a pseudo element is added to an element.
func (EventPseudoElementAdded) MarshalEasyJSON ¶
func (v EventPseudoElementAdded) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventPseudoElementAdded) MarshalJSON ¶
func (v EventPseudoElementAdded) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventPseudoElementAdded) UnmarshalEasyJSON ¶
func (v *EventPseudoElementAdded) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventPseudoElementAdded) UnmarshalJSON ¶
func (v *EventPseudoElementAdded) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventPseudoElementRemoved ¶
type EventPseudoElementRemoved struct { ParentID cdp.NodeID `json:"parentId,omitempty"` // Pseudo element's parent element id. PseudoElementID cdp.NodeID `json:"pseudoElementId,omitempty"` // The removed pseudo element id. }
EventPseudoElementRemoved called when a pseudo element is removed from an element.
func (EventPseudoElementRemoved) MarshalEasyJSON ¶
func (v EventPseudoElementRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventPseudoElementRemoved) MarshalJSON ¶
func (v EventPseudoElementRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventPseudoElementRemoved) UnmarshalEasyJSON ¶
func (v *EventPseudoElementRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventPseudoElementRemoved) UnmarshalJSON ¶
func (v *EventPseudoElementRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventSetChildNodes ¶
type EventSetChildNodes struct { ParentID cdp.NodeID `json:"parentId,omitempty"` // Parent node id to populate with children. Nodes []*cdp.Node `json:"nodes,omitempty"` // Child nodes array. }
EventSetChildNodes fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.
func (EventSetChildNodes) MarshalEasyJSON ¶
func (v EventSetChildNodes) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventSetChildNodes) MarshalJSON ¶
func (v EventSetChildNodes) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventSetChildNodes) UnmarshalEasyJSON ¶
func (v *EventSetChildNodes) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventSetChildNodes) UnmarshalJSON ¶
func (v *EventSetChildNodes) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventShadowRootPopped ¶
type EventShadowRootPopped struct { HostID cdp.NodeID `json:"hostId,omitempty"` // Host element id. RootID cdp.NodeID `json:"rootId,omitempty"` // Shadow root id. }
EventShadowRootPopped called when shadow root is popped from the element.
func (EventShadowRootPopped) MarshalEasyJSON ¶
func (v EventShadowRootPopped) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventShadowRootPopped) MarshalJSON ¶
func (v EventShadowRootPopped) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventShadowRootPopped) UnmarshalEasyJSON ¶
func (v *EventShadowRootPopped) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventShadowRootPopped) UnmarshalJSON ¶
func (v *EventShadowRootPopped) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventShadowRootPushed ¶
type EventShadowRootPushed struct { HostID cdp.NodeID `json:"hostId,omitempty"` // Host element id. Root *cdp.Node `json:"root,omitempty"` // Shadow root. }
EventShadowRootPushed called when shadow root is pushed into the element.
func (EventShadowRootPushed) MarshalEasyJSON ¶
func (v EventShadowRootPushed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventShadowRootPushed) MarshalJSON ¶
func (v EventShadowRootPushed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventShadowRootPushed) UnmarshalEasyJSON ¶
func (v *EventShadowRootPushed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventShadowRootPushed) UnmarshalJSON ¶
func (v *EventShadowRootPushed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FocusParams ¶
FocusParams focuses the given element.
func Focus ¶
func Focus(nodeID cdp.NodeID) *FocusParams
Focus focuses the given element.
parameters:
nodeID - Id of the node to focus.
func (*FocusParams) Do ¶
func (p *FocusParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.focus.
func (FocusParams) MarshalEasyJSON ¶
func (v FocusParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FocusParams) MarshalJSON ¶
func (v FocusParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FocusParams) UnmarshalEasyJSON ¶
func (v *FocusParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FocusParams) UnmarshalJSON ¶
func (v *FocusParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetAttributesParams ¶
type GetAttributesParams struct {
NodeID cdp.NodeID `json:"nodeId"` // Id of the node to retrieve attibutes for.
}
GetAttributesParams returns attributes for the specified node.
func GetAttributes ¶
func GetAttributes(nodeID cdp.NodeID) *GetAttributesParams
GetAttributes returns attributes for the specified node.
parameters:
nodeID - Id of the node to retrieve attibutes for.
func (*GetAttributesParams) Do ¶
func (p *GetAttributesParams) Do(ctxt context.Context, h cdp.FrameHandler) (attributes []string, err error)
Do executes DOM.getAttributes.
returns:
attributes - An interleaved array of node attribute names and values.
func (GetAttributesParams) MarshalEasyJSON ¶
func (v GetAttributesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetAttributesParams) MarshalJSON ¶
func (v GetAttributesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetAttributesParams) UnmarshalEasyJSON ¶
func (v *GetAttributesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetAttributesParams) UnmarshalJSON ¶
func (v *GetAttributesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetAttributesReturns ¶
type GetAttributesReturns struct {
Attributes []string `json:"attributes,omitempty"` // An interleaved array of node attribute names and values.
}
GetAttributesReturns return values.
func (GetAttributesReturns) MarshalEasyJSON ¶
func (v GetAttributesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetAttributesReturns) MarshalJSON ¶
func (v GetAttributesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetAttributesReturns) UnmarshalEasyJSON ¶
func (v *GetAttributesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetAttributesReturns) UnmarshalJSON ¶
func (v *GetAttributesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetBoxModelParams ¶
type GetBoxModelParams struct {
NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get box model for.
}
GetBoxModelParams returns boxes for the currently selected nodes.
func GetBoxModel ¶
func GetBoxModel(nodeID cdp.NodeID) *GetBoxModelParams
GetBoxModel returns boxes for the currently selected nodes.
parameters:
nodeID - Id of the node to get box model for.
func (*GetBoxModelParams) Do ¶
func (p *GetBoxModelParams) Do(ctxt context.Context, h cdp.FrameHandler) (model *BoxModel, err error)
Do executes DOM.getBoxModel.
returns:
model - Box model for the node.
func (GetBoxModelParams) MarshalEasyJSON ¶
func (v GetBoxModelParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetBoxModelParams) MarshalJSON ¶
func (v GetBoxModelParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetBoxModelParams) UnmarshalEasyJSON ¶
func (v *GetBoxModelParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetBoxModelParams) UnmarshalJSON ¶
func (v *GetBoxModelParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetBoxModelReturns ¶
type GetBoxModelReturns struct {
Model *BoxModel `json:"model,omitempty"` // Box model for the node.
}
GetBoxModelReturns return values.
func (GetBoxModelReturns) MarshalEasyJSON ¶
func (v GetBoxModelReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetBoxModelReturns) MarshalJSON ¶
func (v GetBoxModelReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetBoxModelReturns) UnmarshalEasyJSON ¶
func (v *GetBoxModelReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetBoxModelReturns) UnmarshalJSON ¶
func (v *GetBoxModelReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetDocumentParams ¶
type GetDocumentParams struct { Depth int64 `json:"depth,omitempty"` // The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0. Pierce bool `json:"pierce,omitempty"` // Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). }
GetDocumentParams returns the root DOM node (and optionally the subtree) to the caller.
func GetDocument ¶
func GetDocument() *GetDocumentParams
GetDocument returns the root DOM node (and optionally the subtree) to the caller.
parameters:
func (*GetDocumentParams) Do ¶
func (p *GetDocumentParams) Do(ctxt context.Context, h cdp.FrameHandler) (root *cdp.Node, err error)
Do executes DOM.getDocument.
returns:
root - Resulting node.
func (GetDocumentParams) MarshalEasyJSON ¶
func (v GetDocumentParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDocumentParams) MarshalJSON ¶
func (v GetDocumentParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDocumentParams) UnmarshalEasyJSON ¶
func (v *GetDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDocumentParams) UnmarshalJSON ¶
func (v *GetDocumentParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (GetDocumentParams) WithDepth ¶
func (p GetDocumentParams) WithDepth(depth int64) *GetDocumentParams
WithDepth the maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
func (GetDocumentParams) WithPierce ¶
func (p GetDocumentParams) WithPierce(pierce bool) *GetDocumentParams
WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
type GetDocumentReturns ¶
GetDocumentReturns return values.
func (GetDocumentReturns) MarshalEasyJSON ¶
func (v GetDocumentReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDocumentReturns) MarshalJSON ¶
func (v GetDocumentReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDocumentReturns) UnmarshalEasyJSON ¶
func (v *GetDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDocumentReturns) UnmarshalJSON ¶
func (v *GetDocumentReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetHighlightObjectForTestParams ¶
type GetHighlightObjectForTestParams struct {
NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get highlight object for.
}
GetHighlightObjectForTestParams for testing.
func GetHighlightObjectForTest ¶
func GetHighlightObjectForTest(nodeID cdp.NodeID) *GetHighlightObjectForTestParams
GetHighlightObjectForTest for testing.
parameters:
nodeID - Id of the node to get highlight object for.
func (*GetHighlightObjectForTestParams) Do ¶
func (p *GetHighlightObjectForTestParams) Do(ctxt context.Context, h cdp.FrameHandler) (highlight easyjson.RawMessage, err error)
Do executes DOM.getHighlightObjectForTest.
returns:
highlight - Highlight data for the node.
func (GetHighlightObjectForTestParams) MarshalEasyJSON ¶
func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetHighlightObjectForTestParams) MarshalJSON ¶
func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetHighlightObjectForTestParams) UnmarshalEasyJSON ¶
func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetHighlightObjectForTestParams) UnmarshalJSON ¶
func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetHighlightObjectForTestReturns ¶
type GetHighlightObjectForTestReturns struct {
Highlight easyjson.RawMessage `json:"highlight,omitempty"`
}
GetHighlightObjectForTestReturns return values.
func (GetHighlightObjectForTestReturns) MarshalEasyJSON ¶
func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetHighlightObjectForTestReturns) MarshalJSON ¶
func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetHighlightObjectForTestReturns) UnmarshalEasyJSON ¶
func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetHighlightObjectForTestReturns) UnmarshalJSON ¶
func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNodeForLocationParams ¶
type GetNodeForLocationParams struct { X int64 `json:"x"` // X coordinate. Y int64 `json:"y"` // Y coordinate. }
GetNodeForLocationParams returns node id at given location.
func GetNodeForLocation ¶
func GetNodeForLocation(x int64, y int64) *GetNodeForLocationParams
GetNodeForLocation returns node id at given location.
parameters:
x - X coordinate. y - Y coordinate.
func (*GetNodeForLocationParams) Do ¶
func (p *GetNodeForLocationParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.getNodeForLocation.
returns:
nodeID - Id of the node at given coordinates.
func (GetNodeForLocationParams) MarshalEasyJSON ¶
func (v GetNodeForLocationParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetNodeForLocationParams) MarshalJSON ¶
func (v GetNodeForLocationParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetNodeForLocationParams) UnmarshalEasyJSON ¶
func (v *GetNodeForLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetNodeForLocationParams) UnmarshalJSON ¶
func (v *GetNodeForLocationParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNodeForLocationReturns ¶
type GetNodeForLocationReturns struct {
NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node at given coordinates.
}
GetNodeForLocationReturns return values.
func (GetNodeForLocationReturns) MarshalEasyJSON ¶
func (v GetNodeForLocationReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetNodeForLocationReturns) MarshalJSON ¶
func (v GetNodeForLocationReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetNodeForLocationReturns) UnmarshalEasyJSON ¶
func (v *GetNodeForLocationReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetNodeForLocationReturns) UnmarshalJSON ¶
func (v *GetNodeForLocationReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetOuterHTMLParams ¶
type GetOuterHTMLParams struct {
NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get markup for.
}
GetOuterHTMLParams returns node's HTML markup.
func GetOuterHTML ¶
func GetOuterHTML(nodeID cdp.NodeID) *GetOuterHTMLParams
GetOuterHTML returns node's HTML markup.
parameters:
nodeID - Id of the node to get markup for.
func (*GetOuterHTMLParams) Do ¶
func (p *GetOuterHTMLParams) Do(ctxt context.Context, h cdp.FrameHandler) (outerHTML string, err error)
Do executes DOM.getOuterHTML.
returns:
outerHTML - Outer HTML markup.
func (GetOuterHTMLParams) MarshalEasyJSON ¶
func (v GetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetOuterHTMLParams) MarshalJSON ¶
func (v GetOuterHTMLParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetOuterHTMLParams) UnmarshalEasyJSON ¶
func (v *GetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetOuterHTMLParams) UnmarshalJSON ¶
func (v *GetOuterHTMLParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetOuterHTMLReturns ¶
type GetOuterHTMLReturns struct {
OuterHTML string `json:"outerHTML,omitempty"` // Outer HTML markup.
}
GetOuterHTMLReturns return values.
func (GetOuterHTMLReturns) MarshalEasyJSON ¶
func (v GetOuterHTMLReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetOuterHTMLReturns) MarshalJSON ¶
func (v GetOuterHTMLReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetOuterHTMLReturns) UnmarshalEasyJSON ¶
func (v *GetOuterHTMLReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetOuterHTMLReturns) UnmarshalJSON ¶
func (v *GetOuterHTMLReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetRelayoutBoundaryParams ¶
GetRelayoutBoundaryParams returns the id of the nearest ancestor that is a relayout boundary.
func GetRelayoutBoundary ¶
func GetRelayoutBoundary(nodeID cdp.NodeID) *GetRelayoutBoundaryParams
GetRelayoutBoundary returns the id of the nearest ancestor that is a relayout boundary.
parameters:
nodeID - Id of the node.
func (*GetRelayoutBoundaryParams) Do ¶
func (p *GetRelayoutBoundaryParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.getRelayoutBoundary.
returns:
nodeID - Relayout boundary node id for the given node.
func (GetRelayoutBoundaryParams) MarshalEasyJSON ¶
func (v GetRelayoutBoundaryParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetRelayoutBoundaryParams) MarshalJSON ¶
func (v GetRelayoutBoundaryParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetRelayoutBoundaryParams) UnmarshalEasyJSON ¶
func (v *GetRelayoutBoundaryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetRelayoutBoundaryParams) UnmarshalJSON ¶
func (v *GetRelayoutBoundaryParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetRelayoutBoundaryReturns ¶
type GetRelayoutBoundaryReturns struct {
NodeID cdp.NodeID `json:"nodeId,omitempty"` // Relayout boundary node id for the given node.
}
GetRelayoutBoundaryReturns return values.
func (GetRelayoutBoundaryReturns) MarshalEasyJSON ¶
func (v GetRelayoutBoundaryReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetRelayoutBoundaryReturns) MarshalJSON ¶
func (v GetRelayoutBoundaryReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetRelayoutBoundaryReturns) UnmarshalEasyJSON ¶
func (v *GetRelayoutBoundaryReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetRelayoutBoundaryReturns) UnmarshalJSON ¶
func (v *GetRelayoutBoundaryReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetSearchResultsParams ¶
type GetSearchResultsParams struct { SearchID string `json:"searchId"` // Unique search session identifier. FromIndex int64 `json:"fromIndex"` // Start index of the search result to be returned. ToIndex int64 `json:"toIndex"` // End index of the search result to be returned. }
GetSearchResultsParams returns search results from given fromIndex to given toIndex from the sarch with the given identifier.
func GetSearchResults ¶
func GetSearchResults(searchID string, fromIndex int64, toIndex int64) *GetSearchResultsParams
GetSearchResults returns search results from given fromIndex to given toIndex from the sarch with the given identifier.
parameters:
searchID - Unique search session identifier. fromIndex - Start index of the search result to be returned. toIndex - End index of the search result to be returned.
func (*GetSearchResultsParams) Do ¶
func (p *GetSearchResultsParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeIds []cdp.NodeID, err error)
Do executes DOM.getSearchResults.
returns:
nodeIds - Ids of the search result nodes.
func (GetSearchResultsParams) MarshalEasyJSON ¶
func (v GetSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetSearchResultsParams) MarshalJSON ¶
func (v GetSearchResultsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetSearchResultsParams) UnmarshalEasyJSON ¶
func (v *GetSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetSearchResultsParams) UnmarshalJSON ¶
func (v *GetSearchResultsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetSearchResultsReturns ¶
type GetSearchResultsReturns struct {
NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Ids of the search result nodes.
}
GetSearchResultsReturns return values.
func (GetSearchResultsReturns) MarshalEasyJSON ¶
func (v GetSearchResultsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetSearchResultsReturns) MarshalJSON ¶
func (v GetSearchResultsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetSearchResultsReturns) UnmarshalEasyJSON ¶
func (v *GetSearchResultsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetSearchResultsReturns) UnmarshalJSON ¶
func (v *GetSearchResultsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HideHighlightParams ¶
type HideHighlightParams struct{}
HideHighlightParams hides DOM node highlight.
func HideHighlight ¶
func HideHighlight() *HideHighlightParams
HideHighlight hides DOM node highlight.
func (*HideHighlightParams) Do ¶
func (p *HideHighlightParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.hideHighlight.
func (HideHighlightParams) MarshalEasyJSON ¶
func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HideHighlightParams) MarshalJSON ¶
func (v HideHighlightParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HideHighlightParams) UnmarshalEasyJSON ¶
func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HideHighlightParams) UnmarshalJSON ¶
func (v *HideHighlightParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HighlightConfig ¶
type HighlightConfig struct { ShowInfo bool `json:"showInfo,omitempty"` // Whether the node info tooltip should be shown (default: false). ShowRulers bool `json:"showRulers,omitempty"` // Whether the rulers should be shown (default: false). ShowExtensionLines bool `json:"showExtensionLines,omitempty"` // Whether the extension lines from node to the rulers should be shown (default: false). DisplayAsMaterial bool `json:"displayAsMaterial,omitempty"` ContentColor *cdp.RGBA `json:"contentColor,omitempty"` // The content box highlight fill color (default: transparent). PaddingColor *cdp.RGBA `json:"paddingColor,omitempty"` // The padding highlight fill color (default: transparent). BorderColor *cdp.RGBA `json:"borderColor,omitempty"` // The border highlight fill color (default: transparent). MarginColor *cdp.RGBA `json:"marginColor,omitempty"` // The margin highlight fill color (default: transparent). EventTargetColor *cdp.RGBA `json:"eventTargetColor,omitempty"` // The event target element highlight fill color (default: transparent). ShapeColor *cdp.RGBA `json:"shapeColor,omitempty"` // The shape outside fill color (default: transparent). ShapeMarginColor *cdp.RGBA `json:"shapeMarginColor,omitempty"` // The shape margin fill color (default: transparent). SelectorList string `json:"selectorList,omitempty"` // Selectors to highlight relevant nodes. }
HighlightConfig configuration data for the highlighting of page elements.
func (HighlightConfig) MarshalEasyJSON ¶
func (v HighlightConfig) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HighlightConfig) MarshalJSON ¶
func (v HighlightConfig) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HighlightConfig) UnmarshalEasyJSON ¶
func (v *HighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HighlightConfig) UnmarshalJSON ¶
func (v *HighlightConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HighlightFrameParams ¶
type HighlightFrameParams struct { FrameID cdp.FrameID `json:"frameId"` // Identifier of the frame to highlight. ContentColor *cdp.RGBA `json:"contentColor,omitempty"` // The content box highlight fill color (default: transparent). ContentOutlineColor *cdp.RGBA `json:"contentOutlineColor,omitempty"` // The content box highlight outline color (default: transparent). }
HighlightFrameParams highlights owner element of the frame with given id.
func HighlightFrame ¶
func HighlightFrame(frameID cdp.FrameID) *HighlightFrameParams
HighlightFrame highlights owner element of the frame with given id.
parameters:
frameID - Identifier of the frame to highlight.
func (*HighlightFrameParams) Do ¶
func (p *HighlightFrameParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.highlightFrame.
func (HighlightFrameParams) MarshalEasyJSON ¶
func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HighlightFrameParams) MarshalJSON ¶
func (v HighlightFrameParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HighlightFrameParams) UnmarshalEasyJSON ¶
func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HighlightFrameParams) UnmarshalJSON ¶
func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (HighlightFrameParams) WithContentColor ¶
func (p HighlightFrameParams) WithContentColor(contentColor *cdp.RGBA) *HighlightFrameParams
WithContentColor the content box highlight fill color (default: transparent).
func (HighlightFrameParams) WithContentOutlineColor ¶
func (p HighlightFrameParams) WithContentOutlineColor(contentOutlineColor *cdp.RGBA) *HighlightFrameParams
WithContentOutlineColor the content box highlight outline color (default: transparent).
type HighlightNodeParams ¶
type HighlightNodeParams struct { HighlightConfig *HighlightConfig `json:"highlightConfig"` // A descriptor for the highlight appearance. NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node to highlight. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node to highlight. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node to be highlighted. }
HighlightNodeParams highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
func HighlightNode ¶
func HighlightNode(highlightConfig *HighlightConfig) *HighlightNodeParams
HighlightNode highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
parameters:
highlightConfig - A descriptor for the highlight appearance.
func (*HighlightNodeParams) Do ¶
func (p *HighlightNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.highlightNode.
func (HighlightNodeParams) MarshalEasyJSON ¶
func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HighlightNodeParams) MarshalJSON ¶
func (v HighlightNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HighlightNodeParams) UnmarshalEasyJSON ¶
func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HighlightNodeParams) UnmarshalJSON ¶
func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (HighlightNodeParams) WithBackendNodeID ¶
func (p HighlightNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightNodeParams
WithBackendNodeID identifier of the backend node to highlight.
func (HighlightNodeParams) WithNodeID ¶
func (p HighlightNodeParams) WithNodeID(nodeID cdp.NodeID) *HighlightNodeParams
WithNodeID identifier of the node to highlight.
func (HighlightNodeParams) WithObjectID ¶
func (p HighlightNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightNodeParams
WithObjectID javaScript object id of the node to be highlighted.
type HighlightQuadParams ¶
type HighlightQuadParams struct { Quad Quad `json:"quad"` // Quad to highlight Color *cdp.RGBA `json:"color,omitempty"` // The highlight fill color (default: transparent). OutlineColor *cdp.RGBA `json:"outlineColor,omitempty"` // The highlight outline color (default: transparent). }
HighlightQuadParams highlights given quad. Coordinates are absolute with respect to the main frame viewport.
func HighlightQuad ¶
func HighlightQuad(quad Quad) *HighlightQuadParams
HighlightQuad highlights given quad. Coordinates are absolute with respect to the main frame viewport.
parameters:
quad - Quad to highlight
func (*HighlightQuadParams) Do ¶
func (p *HighlightQuadParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.highlightQuad.
func (HighlightQuadParams) MarshalEasyJSON ¶
func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HighlightQuadParams) MarshalJSON ¶
func (v HighlightQuadParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HighlightQuadParams) UnmarshalEasyJSON ¶
func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HighlightQuadParams) UnmarshalJSON ¶
func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (HighlightQuadParams) WithColor ¶
func (p HighlightQuadParams) WithColor(color *cdp.RGBA) *HighlightQuadParams
WithColor the highlight fill color (default: transparent).
func (HighlightQuadParams) WithOutlineColor ¶
func (p HighlightQuadParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightQuadParams
WithOutlineColor the highlight outline color (default: transparent).
type HighlightRectParams ¶
type HighlightRectParams struct { X int64 `json:"x"` // X coordinate Y int64 `json:"y"` // Y coordinate Width int64 `json:"width"` // Rectangle width Height int64 `json:"height"` // Rectangle height Color *cdp.RGBA `json:"color,omitempty"` // The highlight fill color (default: transparent). OutlineColor *cdp.RGBA `json:"outlineColor,omitempty"` // The highlight outline color (default: transparent). }
HighlightRectParams highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
func HighlightRect ¶
func HighlightRect(x int64, y int64, width int64, height int64) *HighlightRectParams
HighlightRect highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
parameters:
x - X coordinate y - Y coordinate width - Rectangle width height - Rectangle height
func (*HighlightRectParams) Do ¶
func (p *HighlightRectParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.highlightRect.
func (HighlightRectParams) MarshalEasyJSON ¶
func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HighlightRectParams) MarshalJSON ¶
func (v HighlightRectParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HighlightRectParams) UnmarshalEasyJSON ¶
func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HighlightRectParams) UnmarshalJSON ¶
func (v *HighlightRectParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (HighlightRectParams) WithColor ¶
func (p HighlightRectParams) WithColor(color *cdp.RGBA) *HighlightRectParams
WithColor the highlight fill color (default: transparent).
func (HighlightRectParams) WithOutlineColor ¶
func (p HighlightRectParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightRectParams
WithOutlineColor the highlight outline color (default: transparent).
type InspectMode ¶
type InspectMode string
InspectMode [no description].
const ( InspectModeSearchForNode InspectMode = "searchForNode" InspectModeSearchForUAShadowDOM InspectMode = "searchForUAShadowDOM" InspectModeNone InspectMode = "none" )
InspectMode values.
func (InspectMode) MarshalEasyJSON ¶
func (t InspectMode) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (InspectMode) MarshalJSON ¶
func (t InspectMode) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (InspectMode) String ¶
func (t InspectMode) String() string
String returns the InspectMode as string value.
func (*InspectMode) UnmarshalEasyJSON ¶
func (t *InspectMode) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*InspectMode) UnmarshalJSON ¶
func (t *InspectMode) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type MarkUndoableStateParams ¶
type MarkUndoableStateParams struct{}
MarkUndoableStateParams marks last undoable state.
func MarkUndoableState ¶
func MarkUndoableState() *MarkUndoableStateParams
MarkUndoableState marks last undoable state.
func (*MarkUndoableStateParams) Do ¶
func (p *MarkUndoableStateParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.markUndoableState.
func (MarkUndoableStateParams) MarshalEasyJSON ¶
func (v MarkUndoableStateParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MarkUndoableStateParams) MarshalJSON ¶
func (v MarkUndoableStateParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MarkUndoableStateParams) UnmarshalEasyJSON ¶
func (v *MarkUndoableStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MarkUndoableStateParams) UnmarshalJSON ¶
func (v *MarkUndoableStateParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MoveToParams ¶
type MoveToParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to move. TargetNodeID cdp.NodeID `json:"targetNodeId"` // Id of the element to drop the moved node into. InsertBeforeNodeID cdp.NodeID `json:"insertBeforeNodeId,omitempty"` // Drop node before this one (if absent, the moved node becomes the last child of targetNodeId). }
MoveToParams moves node into the new container, places it before the given anchor.
func MoveTo ¶
func MoveTo(nodeID cdp.NodeID, targetNodeID cdp.NodeID) *MoveToParams
MoveTo moves node into the new container, places it before the given anchor.
parameters:
nodeID - Id of the node to move. targetNodeID - Id of the element to drop the moved node into.
func (*MoveToParams) Do ¶
func (p *MoveToParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.moveTo.
returns:
nodeID - New id of the moved node.
func (MoveToParams) MarshalEasyJSON ¶
func (v MoveToParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MoveToParams) MarshalJSON ¶
func (v MoveToParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MoveToParams) UnmarshalEasyJSON ¶
func (v *MoveToParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MoveToParams) UnmarshalJSON ¶
func (v *MoveToParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (MoveToParams) WithInsertBeforeNodeID ¶
func (p MoveToParams) WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *MoveToParams
WithInsertBeforeNodeID drop node before this one (if absent, the moved node becomes the last child of targetNodeId).
type MoveToReturns ¶
type MoveToReturns struct {
NodeID cdp.NodeID `json:"nodeId,omitempty"` // New id of the moved node.
}
MoveToReturns return values.
func (MoveToReturns) MarshalEasyJSON ¶
func (v MoveToReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MoveToReturns) MarshalJSON ¶
func (v MoveToReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MoveToReturns) UnmarshalEasyJSON ¶
func (v *MoveToReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MoveToReturns) UnmarshalJSON ¶
func (v *MoveToReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PerformSearchParams ¶
type PerformSearchParams struct { Query string `json:"query"` // Plain text or query selector or XPath search query. IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"` // True to search in user agent shadow DOM. }
PerformSearchParams searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.
func PerformSearch ¶
func PerformSearch(query string) *PerformSearchParams
PerformSearch searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.
parameters:
query - Plain text or query selector or XPath search query.
func (*PerformSearchParams) Do ¶
func (p *PerformSearchParams) Do(ctxt context.Context, h cdp.FrameHandler) (searchID string, resultCount int64, err error)
Do executes DOM.performSearch.
returns:
searchID - Unique search session identifier. resultCount - Number of search results.
func (PerformSearchParams) MarshalEasyJSON ¶
func (v PerformSearchParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PerformSearchParams) MarshalJSON ¶
func (v PerformSearchParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PerformSearchParams) UnmarshalEasyJSON ¶
func (v *PerformSearchParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PerformSearchParams) UnmarshalJSON ¶
func (v *PerformSearchParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (PerformSearchParams) WithIncludeUserAgentShadowDOM ¶
func (p PerformSearchParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *PerformSearchParams
WithIncludeUserAgentShadowDOM true to search in user agent shadow DOM.
type PerformSearchReturns ¶
type PerformSearchReturns struct { SearchID string `json:"searchId,omitempty"` // Unique search session identifier. ResultCount int64 `json:"resultCount,omitempty"` // Number of search results. }
PerformSearchReturns return values.
func (PerformSearchReturns) MarshalEasyJSON ¶
func (v PerformSearchReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PerformSearchReturns) MarshalJSON ¶
func (v PerformSearchReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PerformSearchReturns) UnmarshalEasyJSON ¶
func (v *PerformSearchReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PerformSearchReturns) UnmarshalJSON ¶
func (v *PerformSearchReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PushNodeByPathToFrontendParams ¶
type PushNodeByPathToFrontendParams struct {
Path string `json:"path"` // Path to node in the proprietary format.
}
PushNodeByPathToFrontendParams requests that the node is sent to the caller given its path. // FIXME, use XPath.
func PushNodeByPathToFrontend ¶
func PushNodeByPathToFrontend(path string) *PushNodeByPathToFrontendParams
PushNodeByPathToFrontend requests that the node is sent to the caller given its path. // FIXME, use XPath.
parameters:
path - Path to node in the proprietary format.
func (*PushNodeByPathToFrontendParams) Do ¶
func (p *PushNodeByPathToFrontendParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.pushNodeByPathToFrontend.
returns:
nodeID - Id of the node for given path.
func (PushNodeByPathToFrontendParams) MarshalEasyJSON ¶
func (v PushNodeByPathToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PushNodeByPathToFrontendParams) MarshalJSON ¶
func (v PushNodeByPathToFrontendParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PushNodeByPathToFrontendParams) UnmarshalEasyJSON ¶
func (v *PushNodeByPathToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PushNodeByPathToFrontendParams) UnmarshalJSON ¶
func (v *PushNodeByPathToFrontendParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PushNodeByPathToFrontendReturns ¶
type PushNodeByPathToFrontendReturns struct {
NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node for given path.
}
PushNodeByPathToFrontendReturns return values.
func (PushNodeByPathToFrontendReturns) MarshalEasyJSON ¶
func (v PushNodeByPathToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PushNodeByPathToFrontendReturns) MarshalJSON ¶
func (v PushNodeByPathToFrontendReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PushNodeByPathToFrontendReturns) UnmarshalEasyJSON ¶
func (v *PushNodeByPathToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PushNodeByPathToFrontendReturns) UnmarshalJSON ¶
func (v *PushNodeByPathToFrontendReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PushNodesByBackendIdsToFrontendParams ¶
type PushNodesByBackendIdsToFrontendParams struct {
BackendNodeIds []cdp.BackendNodeID `json:"backendNodeIds"` // The array of backend node ids.
}
PushNodesByBackendIdsToFrontendParams requests that a batch of nodes is sent to the caller given their backend node ids.
func PushNodesByBackendIdsToFrontend ¶
func PushNodesByBackendIdsToFrontend(backendNodeIds []cdp.BackendNodeID) *PushNodesByBackendIdsToFrontendParams
PushNodesByBackendIdsToFrontend requests that a batch of nodes is sent to the caller given their backend node ids.
parameters:
backendNodeIds - The array of backend node ids.
func (*PushNodesByBackendIdsToFrontendParams) Do ¶
func (p *PushNodesByBackendIdsToFrontendParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeIds []cdp.NodeID, err error)
Do executes DOM.pushNodesByBackendIdsToFrontend.
returns:
nodeIds - The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.
func (PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON ¶
func (v PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PushNodesByBackendIdsToFrontendParams) MarshalJSON ¶
func (v PushNodesByBackendIdsToFrontendParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON ¶
func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PushNodesByBackendIdsToFrontendParams) UnmarshalJSON ¶
func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PushNodesByBackendIdsToFrontendReturns ¶
type PushNodesByBackendIdsToFrontendReturns struct {
NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.
}
PushNodesByBackendIdsToFrontendReturns return values.
func (PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON ¶
func (v PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PushNodesByBackendIdsToFrontendReturns) MarshalJSON ¶
func (v PushNodesByBackendIdsToFrontendReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON ¶
func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON ¶
func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Quad ¶
type Quad []float64
Quad an array of quad vertices, x immediately followed by y for each point, points clock-wise.
type QuerySelectorAllParams ¶
type QuerySelectorAllParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to query upon. Selector string `json:"selector"` // Selector string. }
QuerySelectorAllParams executes querySelectorAll on a given node.
func QuerySelectorAll ¶
func QuerySelectorAll(nodeID cdp.NodeID, selector string) *QuerySelectorAllParams
QuerySelectorAll executes querySelectorAll on a given node.
parameters:
nodeID - Id of the node to query upon. selector - Selector string.
func (*QuerySelectorAllParams) Do ¶
func (p *QuerySelectorAllParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeIds []cdp.NodeID, err error)
Do executes DOM.querySelectorAll.
returns:
nodeIds - Query selector result.
func (QuerySelectorAllParams) MarshalEasyJSON ¶
func (v QuerySelectorAllParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (QuerySelectorAllParams) MarshalJSON ¶
func (v QuerySelectorAllParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*QuerySelectorAllParams) UnmarshalEasyJSON ¶
func (v *QuerySelectorAllParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*QuerySelectorAllParams) UnmarshalJSON ¶
func (v *QuerySelectorAllParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type QuerySelectorAllReturns ¶
type QuerySelectorAllReturns struct {
NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Query selector result.
}
QuerySelectorAllReturns return values.
func (QuerySelectorAllReturns) MarshalEasyJSON ¶
func (v QuerySelectorAllReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (QuerySelectorAllReturns) MarshalJSON ¶
func (v QuerySelectorAllReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*QuerySelectorAllReturns) UnmarshalEasyJSON ¶
func (v *QuerySelectorAllReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*QuerySelectorAllReturns) UnmarshalJSON ¶
func (v *QuerySelectorAllReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type QuerySelectorParams ¶
type QuerySelectorParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to query upon. Selector string `json:"selector"` // Selector string. }
QuerySelectorParams executes querySelector on a given node.
func QuerySelector ¶
func QuerySelector(nodeID cdp.NodeID, selector string) *QuerySelectorParams
QuerySelector executes querySelector on a given node.
parameters:
nodeID - Id of the node to query upon. selector - Selector string.
func (*QuerySelectorParams) Do ¶
func (p *QuerySelectorParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.querySelector.
returns:
nodeID - Query selector result.
func (QuerySelectorParams) MarshalEasyJSON ¶
func (v QuerySelectorParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (QuerySelectorParams) MarshalJSON ¶
func (v QuerySelectorParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*QuerySelectorParams) UnmarshalEasyJSON ¶
func (v *QuerySelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*QuerySelectorParams) UnmarshalJSON ¶
func (v *QuerySelectorParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type QuerySelectorReturns ¶
type QuerySelectorReturns struct {
NodeID cdp.NodeID `json:"nodeId,omitempty"` // Query selector result.
}
QuerySelectorReturns return values.
func (QuerySelectorReturns) MarshalEasyJSON ¶
func (v QuerySelectorReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (QuerySelectorReturns) MarshalJSON ¶
func (v QuerySelectorReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*QuerySelectorReturns) UnmarshalEasyJSON ¶
func (v *QuerySelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*QuerySelectorReturns) UnmarshalJSON ¶
func (v *QuerySelectorReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Rect ¶
type Rect struct { X float64 `json:"x,omitempty"` // X coordinate Y float64 `json:"y,omitempty"` // Y coordinate Width float64 `json:"width,omitempty"` // Rectangle width Height float64 `json:"height,omitempty"` // Rectangle height }
Rect rectangle.
func (Rect) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Rect) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Rect) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Rect) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RedoParams ¶
type RedoParams struct{}
RedoParams re-does the last undone action.
func (*RedoParams) Do ¶
func (p *RedoParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.redo.
func (RedoParams) MarshalEasyJSON ¶
func (v RedoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RedoParams) MarshalJSON ¶
func (v RedoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RedoParams) UnmarshalEasyJSON ¶
func (v *RedoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RedoParams) UnmarshalJSON ¶
func (v *RedoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RemoveAttributeParams ¶
type RemoveAttributeParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the element to remove attribute from. Name string `json:"name"` // Name of the attribute to remove. }
RemoveAttributeParams removes attribute with given name from an element with given id.
func RemoveAttribute ¶
func RemoveAttribute(nodeID cdp.NodeID, name string) *RemoveAttributeParams
RemoveAttribute removes attribute with given name from an element with given id.
parameters:
nodeID - Id of the element to remove attribute from. name - Name of the attribute to remove.
func (*RemoveAttributeParams) Do ¶
func (p *RemoveAttributeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.removeAttribute.
func (RemoveAttributeParams) MarshalEasyJSON ¶
func (v RemoveAttributeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RemoveAttributeParams) MarshalJSON ¶
func (v RemoveAttributeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RemoveAttributeParams) UnmarshalEasyJSON ¶
func (v *RemoveAttributeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RemoveAttributeParams) UnmarshalJSON ¶
func (v *RemoveAttributeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RemoveNodeParams ¶
RemoveNodeParams removes node with given id.
func RemoveNode ¶
func RemoveNode(nodeID cdp.NodeID) *RemoveNodeParams
RemoveNode removes node with given id.
parameters:
nodeID - Id of the node to remove.
func (*RemoveNodeParams) Do ¶
func (p *RemoveNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.removeNode.
func (RemoveNodeParams) MarshalEasyJSON ¶
func (v RemoveNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RemoveNodeParams) MarshalJSON ¶
func (v RemoveNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RemoveNodeParams) UnmarshalEasyJSON ¶
func (v *RemoveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RemoveNodeParams) UnmarshalJSON ¶
func (v *RemoveNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestChildNodesParams ¶
type RequestChildNodesParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get children for. Depth int64 `json:"depth,omitempty"` // The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0. Pierce bool `json:"pierce,omitempty"` // Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false). }
RequestChildNodesParams requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.
func RequestChildNodes ¶
func RequestChildNodes(nodeID cdp.NodeID) *RequestChildNodesParams
RequestChildNodes requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.
parameters:
nodeID - Id of the node to get children for.
func (*RequestChildNodesParams) Do ¶
func (p *RequestChildNodesParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.requestChildNodes.
func (RequestChildNodesParams) MarshalEasyJSON ¶
func (v RequestChildNodesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestChildNodesParams) MarshalJSON ¶
func (v RequestChildNodesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestChildNodesParams) UnmarshalEasyJSON ¶
func (v *RequestChildNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestChildNodesParams) UnmarshalJSON ¶
func (v *RequestChildNodesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (RequestChildNodesParams) WithDepth ¶
func (p RequestChildNodesParams) WithDepth(depth int64) *RequestChildNodesParams
WithDepth the maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
func (RequestChildNodesParams) WithPierce ¶
func (p RequestChildNodesParams) WithPierce(pierce bool) *RequestChildNodesParams
WithPierce whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).
type RequestNodeParams ¶
type RequestNodeParams struct {
ObjectID runtime.RemoteObjectID `json:"objectId"` // JavaScript object id to convert into node.
}
RequestNodeParams requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications.
func RequestNode ¶
func RequestNode(objectID runtime.RemoteObjectID) *RequestNodeParams
RequestNode requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications.
parameters:
objectID - JavaScript object id to convert into node.
func (*RequestNodeParams) Do ¶
func (p *RequestNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.requestNode.
returns:
nodeID - Node id for given object.
func (RequestNodeParams) MarshalEasyJSON ¶
func (v RequestNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestNodeParams) MarshalJSON ¶
func (v RequestNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestNodeParams) UnmarshalEasyJSON ¶
func (v *RequestNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestNodeParams) UnmarshalJSON ¶
func (v *RequestNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestNodeReturns ¶
type RequestNodeReturns struct {
NodeID cdp.NodeID `json:"nodeId,omitempty"` // Node id for given object.
}
RequestNodeReturns return values.
func (RequestNodeReturns) MarshalEasyJSON ¶
func (v RequestNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestNodeReturns) MarshalJSON ¶
func (v RequestNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestNodeReturns) UnmarshalEasyJSON ¶
func (v *RequestNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestNodeReturns) UnmarshalJSON ¶
func (v *RequestNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResolveNodeParams ¶
type ResolveNodeParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to resolve. ObjectGroup string `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects. }
ResolveNodeParams resolves JavaScript node object for given node id.
func ResolveNode ¶
func ResolveNode(nodeID cdp.NodeID) *ResolveNodeParams
ResolveNode resolves JavaScript node object for given node id.
parameters:
nodeID - Id of the node to resolve.
func (*ResolveNodeParams) Do ¶
func (p *ResolveNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (object *runtime.RemoteObject, err error)
Do executes DOM.resolveNode.
returns:
object - JavaScript object wrapper for given node.
func (ResolveNodeParams) MarshalEasyJSON ¶
func (v ResolveNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResolveNodeParams) MarshalJSON ¶
func (v ResolveNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResolveNodeParams) UnmarshalEasyJSON ¶
func (v *ResolveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResolveNodeParams) UnmarshalJSON ¶
func (v *ResolveNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (ResolveNodeParams) WithObjectGroup ¶
func (p ResolveNodeParams) WithObjectGroup(objectGroup string) *ResolveNodeParams
WithObjectGroup symbolic group name that can be used to release multiple objects.
type ResolveNodeReturns ¶
type ResolveNodeReturns struct {
Object *runtime.RemoteObject `json:"object,omitempty"` // JavaScript object wrapper for given node.
}
ResolveNodeReturns return values.
func (ResolveNodeReturns) MarshalEasyJSON ¶
func (v ResolveNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResolveNodeReturns) MarshalJSON ¶
func (v ResolveNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResolveNodeReturns) UnmarshalEasyJSON ¶
func (v *ResolveNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResolveNodeReturns) UnmarshalJSON ¶
func (v *ResolveNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetAttributeValueParams ¶
type SetAttributeValueParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the element to set attribute for. Name string `json:"name"` // Attribute name. Value string `json:"value"` // Attribute value. }
SetAttributeValueParams sets attribute for an element with given id.
func SetAttributeValue ¶
func SetAttributeValue(nodeID cdp.NodeID, name string, value string) *SetAttributeValueParams
SetAttributeValue sets attribute for an element with given id.
parameters:
nodeID - Id of the element to set attribute for. name - Attribute name. value - Attribute value.
func (*SetAttributeValueParams) Do ¶
func (p *SetAttributeValueParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.setAttributeValue.
func (SetAttributeValueParams) MarshalEasyJSON ¶
func (v SetAttributeValueParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetAttributeValueParams) MarshalJSON ¶
func (v SetAttributeValueParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetAttributeValueParams) UnmarshalEasyJSON ¶
func (v *SetAttributeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetAttributeValueParams) UnmarshalJSON ¶
func (v *SetAttributeValueParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetAttributesAsTextParams ¶
type SetAttributesAsTextParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the element to set attributes for. Text string `json:"text"` // Text with a number of attributes. Will parse this text using HTML parser. Name string `json:"name,omitempty"` // Attribute name to replace with new attributes derived from text in case text parsed successfully. }
SetAttributesAsTextParams sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.
func SetAttributesAsText ¶
func SetAttributesAsText(nodeID cdp.NodeID, text string) *SetAttributesAsTextParams
SetAttributesAsText sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.
parameters:
nodeID - Id of the element to set attributes for. text - Text with a number of attributes. Will parse this text using HTML parser.
func (*SetAttributesAsTextParams) Do ¶
func (p *SetAttributesAsTextParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.setAttributesAsText.
func (SetAttributesAsTextParams) MarshalEasyJSON ¶
func (v SetAttributesAsTextParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetAttributesAsTextParams) MarshalJSON ¶
func (v SetAttributesAsTextParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetAttributesAsTextParams) UnmarshalEasyJSON ¶
func (v *SetAttributesAsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetAttributesAsTextParams) UnmarshalJSON ¶
func (v *SetAttributesAsTextParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (SetAttributesAsTextParams) WithName ¶
func (p SetAttributesAsTextParams) WithName(name string) *SetAttributesAsTextParams
WithName attribute name to replace with new attributes derived from text in case text parsed successfully.
type SetFileInputFilesParams ¶
type SetFileInputFilesParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the file input node to set files for. Files []string `json:"files"` // Array of file paths to set. }
SetFileInputFilesParams sets files for the given file input element.
func SetFileInputFiles ¶
func SetFileInputFiles(nodeID cdp.NodeID, files []string) *SetFileInputFilesParams
SetFileInputFiles sets files for the given file input element.
parameters:
nodeID - Id of the file input node to set files for. files - Array of file paths to set.
func (*SetFileInputFilesParams) Do ¶
func (p *SetFileInputFilesParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.setFileInputFiles.
func (SetFileInputFilesParams) MarshalEasyJSON ¶
func (v SetFileInputFilesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetFileInputFilesParams) MarshalJSON ¶
func (v SetFileInputFilesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetFileInputFilesParams) UnmarshalEasyJSON ¶
func (v *SetFileInputFilesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetFileInputFilesParams) UnmarshalJSON ¶
func (v *SetFileInputFilesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetInspectModeParams ¶
type SetInspectModeParams struct { Mode InspectMode `json:"mode"` // Set an inspection mode. HighlightConfig *HighlightConfig `json:"highlightConfig,omitempty"` // A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false. }
SetInspectModeParams enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.
func SetInspectMode ¶
func SetInspectMode(mode InspectMode) *SetInspectModeParams
SetInspectMode enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.
parameters:
mode - Set an inspection mode.
func (*SetInspectModeParams) Do ¶
func (p *SetInspectModeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.setInspectMode.
func (SetInspectModeParams) MarshalEasyJSON ¶
func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetInspectModeParams) MarshalJSON ¶
func (v SetInspectModeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetInspectModeParams) UnmarshalEasyJSON ¶
func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetInspectModeParams) UnmarshalJSON ¶
func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (SetInspectModeParams) WithHighlightConfig ¶
func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams
WithHighlightConfig a descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false.
type SetInspectedNodeParams ¶
type SetInspectedNodeParams struct {
NodeID cdp.NodeID `json:"nodeId"` // DOM node id to be accessible by means of $x command line API.
}
SetInspectedNodeParams enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
func SetInspectedNode ¶
func SetInspectedNode(nodeID cdp.NodeID) *SetInspectedNodeParams
SetInspectedNode enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
parameters:
nodeID - DOM node id to be accessible by means of $x command line API.
func (*SetInspectedNodeParams) Do ¶
func (p *SetInspectedNodeParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.setInspectedNode.
func (SetInspectedNodeParams) MarshalEasyJSON ¶
func (v SetInspectedNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetInspectedNodeParams) MarshalJSON ¶
func (v SetInspectedNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetInspectedNodeParams) UnmarshalEasyJSON ¶
func (v *SetInspectedNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetInspectedNodeParams) UnmarshalJSON ¶
func (v *SetInspectedNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetNodeNameParams ¶
type SetNodeNameParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to set name for. Name string `json:"name"` // New node's name. }
SetNodeNameParams sets node name for a node with given id.
func SetNodeName ¶
func SetNodeName(nodeID cdp.NodeID, name string) *SetNodeNameParams
SetNodeName sets node name for a node with given id.
parameters:
nodeID - Id of the node to set name for. name - New node's name.
func (*SetNodeNameParams) Do ¶
func (p *SetNodeNameParams) Do(ctxt context.Context, h cdp.FrameHandler) (nodeID cdp.NodeID, err error)
Do executes DOM.setNodeName.
returns:
nodeID - New node's id.
func (SetNodeNameParams) MarshalEasyJSON ¶
func (v SetNodeNameParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetNodeNameParams) MarshalJSON ¶
func (v SetNodeNameParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetNodeNameParams) UnmarshalEasyJSON ¶
func (v *SetNodeNameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetNodeNameParams) UnmarshalJSON ¶
func (v *SetNodeNameParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetNodeNameReturns ¶
SetNodeNameReturns return values.
func (SetNodeNameReturns) MarshalEasyJSON ¶
func (v SetNodeNameReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetNodeNameReturns) MarshalJSON ¶
func (v SetNodeNameReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetNodeNameReturns) UnmarshalEasyJSON ¶
func (v *SetNodeNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetNodeNameReturns) UnmarshalJSON ¶
func (v *SetNodeNameReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetNodeValueParams ¶
type SetNodeValueParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to set value for. Value string `json:"value"` // New node's value. }
SetNodeValueParams sets node value for a node with given id.
func SetNodeValue ¶
func SetNodeValue(nodeID cdp.NodeID, value string) *SetNodeValueParams
SetNodeValue sets node value for a node with given id.
parameters:
nodeID - Id of the node to set value for. value - New node's value.
func (*SetNodeValueParams) Do ¶
func (p *SetNodeValueParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.setNodeValue.
func (SetNodeValueParams) MarshalEasyJSON ¶
func (v SetNodeValueParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetNodeValueParams) MarshalJSON ¶
func (v SetNodeValueParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetNodeValueParams) UnmarshalEasyJSON ¶
func (v *SetNodeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetNodeValueParams) UnmarshalJSON ¶
func (v *SetNodeValueParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetOuterHTMLParams ¶
type SetOuterHTMLParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to set markup for. OuterHTML string `json:"outerHTML"` // Outer HTML markup to set. }
SetOuterHTMLParams sets node HTML markup, returns new node id.
func SetOuterHTML ¶
func SetOuterHTML(nodeID cdp.NodeID, outerHTML string) *SetOuterHTMLParams
SetOuterHTML sets node HTML markup, returns new node id.
parameters:
nodeID - Id of the node to set markup for. outerHTML - Outer HTML markup to set.
func (*SetOuterHTMLParams) Do ¶
func (p *SetOuterHTMLParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.setOuterHTML.
func (SetOuterHTMLParams) MarshalEasyJSON ¶
func (v SetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetOuterHTMLParams) MarshalJSON ¶
func (v SetOuterHTMLParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetOuterHTMLParams) UnmarshalEasyJSON ¶
func (v *SetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetOuterHTMLParams) UnmarshalJSON ¶
func (v *SetOuterHTMLParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ShapeOutsideInfo ¶
type ShapeOutsideInfo struct { Bounds Quad `json:"bounds,omitempty"` // Shape bounds Shape []easyjson.RawMessage `json:"shape,omitempty"` // Shape coordinate details MarginShape []easyjson.RawMessage `json:"marginShape,omitempty"` // Margin shape bounds }
ShapeOutsideInfo cSS Shape Outside details.
func (ShapeOutsideInfo) MarshalEasyJSON ¶
func (v ShapeOutsideInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ShapeOutsideInfo) MarshalJSON ¶
func (v ShapeOutsideInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ShapeOutsideInfo) UnmarshalEasyJSON ¶
func (v *ShapeOutsideInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ShapeOutsideInfo) UnmarshalJSON ¶
func (v *ShapeOutsideInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UndoParams ¶
type UndoParams struct{}
UndoParams undoes the last performed action.
func (*UndoParams) Do ¶
func (p *UndoParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes DOM.undo.
func (UndoParams) MarshalEasyJSON ¶
func (v UndoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UndoParams) MarshalJSON ¶
func (v UndoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UndoParams) UnmarshalEasyJSON ¶
func (v *UndoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UndoParams) UnmarshalJSON ¶
func (v *UndoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface