import "github.com/chromedp/cdproto/dom"
Package dom provides the Chrome DevTools Protocol commands, types, and events for the 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.
Note that iframe owner elements will return corresponding document elements as their child nodes.
Generated by the cdproto-gen command.
dom.go easyjson.go events.go types.go
const ( CommandCollectClassNamesFromSubtree = "DOM.collectClassNamesFromSubtree" CommandCopyTo = "DOM.copyTo" CommandDescribeNode = "DOM.describeNode" CommandScrollIntoViewIfNeeded = "DOM.scrollIntoViewIfNeeded" CommandDisable = "DOM.disable" CommandDiscardSearchResults = "DOM.discardSearchResults" CommandEnable = "DOM.enable" CommandFocus = "DOM.focus" CommandGetAttributes = "DOM.getAttributes" CommandGetBoxModel = "DOM.getBoxModel" CommandGetContentQuads = "DOM.getContentQuads" CommandGetDocument = "DOM.getDocument" CommandGetNodesForSubtreeByStyle = "DOM.getNodesForSubtreeByStyle" CommandGetNodeForLocation = "DOM.getNodeForLocation" CommandGetOuterHTML = "DOM.getOuterHTML" CommandGetRelayoutBoundary = "DOM.getRelayoutBoundary" CommandGetSearchResults = "DOM.getSearchResults" CommandMarkUndoableState = "DOM.markUndoableState" CommandMoveTo = "DOM.moveTo" CommandPerformSearch = "DOM.performSearch" CommandPushNodeByPathToFrontend = "DOM.pushNodeByPathToFrontend" CommandPushNodesByBackendIdsToFrontend = "DOM.pushNodesByBackendIdsToFrontend" CommandQuerySelector = "DOM.querySelector" CommandQuerySelectorAll = "DOM.querySelectorAll" CommandRedo = "DOM.redo" CommandRemoveAttribute = "DOM.removeAttribute" CommandRemoveNode = "DOM.removeNode" CommandRequestChildNodes = "DOM.requestChildNodes" CommandRequestNode = "DOM.requestNode" CommandResolveNode = "DOM.resolveNode" CommandSetAttributeValue = "DOM.setAttributeValue" CommandSetAttributesAsText = "DOM.setAttributesAsText" CommandSetFileInputFiles = "DOM.setFileInputFiles" CommandSetNodeStackTracesEnabled = "DOM.setNodeStackTracesEnabled" CommandGetNodeStackTraces = "DOM.getNodeStackTraces" CommandGetFileInfo = "DOM.getFileInfo" CommandSetInspectedNode = "DOM.setInspectedNode" CommandSetNodeName = "DOM.setNodeName" CommandSetNodeValue = "DOM.setNodeValue" CommandSetOuterHTML = "DOM.setOuterHTML" CommandUndo = "DOM.undo" CommandGetFrameOwner = "DOM.getFrameOwner" )
Command names.
type BoxModel struct { Content Quad `json:"content"` // Content box Padding Quad `json:"padding"` // Padding box Border Quad `json:"border"` // Border box Margin Quad `json:"margin"` // Margin box Width int64 `json:"width"` // Node width Height int64 `json:"height"` // Node height ShapeOutside *ShapeOutsideInfo `json:"shapeOutside,omitempty"` // Shape outside coordinates }
BoxModel box model.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-BoxModel
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
type CSSComputedStyleProperty struct { Name string `json:"name"` // Computed style property name. Value string `json:"value"` // Computed style property value. }
CSSComputedStyleProperty [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-CSSComputedStyleProperty
func (v CSSComputedStyleProperty) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v CSSComputedStyleProperty) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *CSSComputedStyleProperty) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CSSComputedStyleProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(nodeID cdp.NodeID) *CollectClassNamesFromSubtreeParams
CollectClassNamesFromSubtree collects class names for the node with given id and all of it's child nodes.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-collectClassNamesFromSubtree
parameters:
nodeID - Id of the node to collect class names.
func (p *CollectClassNamesFromSubtreeParams) Do(ctx context.Context) (classNames []string, err error)
Do executes DOM.collectClassNamesFromSubtree against the provided context.
returns:
classNames - Class name list.
func (v CollectClassNamesFromSubtreeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v CollectClassNamesFromSubtreeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CollectClassNamesFromSubtreeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CollectClassNamesFromSubtreeReturns struct { ClassNames []string `json:"classNames,omitempty"` // Class name list. }
CollectClassNamesFromSubtreeReturns return values.
func (v CollectClassNamesFromSubtreeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v CollectClassNamesFromSubtreeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CollectClassNamesFromSubtreeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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.
CopyTo creates a deep copy of the specified node and places it into the target container before the given anchor.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-copyTo
parameters:
nodeID - Id of the node to copy. targetNodeID - Id of the element to drop the copy into.
Do executes DOM.copyTo against the provided context.
returns:
nodeID - Id of the node clone.
func (v CopyToParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v CopyToParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *CopyToParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CopyToParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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).
CopyToReturns return values.
func (v CopyToReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v CopyToReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *CopyToReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CopyToReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DescribeNodeParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. 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). }
DescribeNodeParams describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.
func DescribeNode() *DescribeNodeParams
DescribeNode describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-describeNode
parameters:
Do executes DOM.describeNode against the provided context.
returns:
node - Node description.
func (v DescribeNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v DescribeNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *DescribeNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DescribeNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p DescribeNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *DescribeNodeParams
WithBackendNodeID identifier of the backend node.
func (p DescribeNodeParams) WithDepth(depth int64) *DescribeNodeParams
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 (p DescribeNodeParams) WithNodeID(nodeID cdp.NodeID) *DescribeNodeParams
WithNodeID identifier of the node.
func (p DescribeNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *DescribeNodeParams
WithObjectID JavaScript object id of the node wrapper.
func (p DescribeNodeParams) WithPierce(pierce bool) *DescribeNodeParams
WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
DescribeNodeReturns return values.
func (v DescribeNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v DescribeNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *DescribeNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DescribeNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams struct{}
DisableParams disables DOM agent for the given page.
func Disable() *DisableParams
Disable disables DOM agent for the given page.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-disable
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes DOM.disable against the provided context.
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(searchID string) *DiscardSearchResultsParams
DiscardSearchResults discards search results from the session with the given id. getSearchResults should no longer be called for that search.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-discardSearchResults
parameters:
searchID - Unique search session identifier.
func (p *DiscardSearchResultsParams) Do(ctx context.Context) (err error)
Do executes DOM.discardSearchResults against the provided context.
func (v DiscardSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v DiscardSearchResultsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *DiscardSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DiscardSearchResultsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams struct{}
EnableParams enables DOM agent for the given page.
func Enable() *EnableParams
Enable enables DOM agent for the given page.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-enable
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes DOM.enable against the provided context.
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAttributeModified struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed. Name string `json:"name"` // Attribute name. Value string `json:"value"` // Attribute value. }
EventAttributeModified fired when Element's attribute is modified.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeModified
func (v EventAttributeModified) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventAttributeModified) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventAttributeModified) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventAttributeModified) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAttributeRemoved struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed. Name string `json:"name"` // A ttribute name. }
EventAttributeRemoved fired when Element's attribute is removed.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeRemoved
func (v EventAttributeRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventAttributeRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventAttributeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventAttributeRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventCharacterDataModified struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed. CharacterData string `json:"characterData"` // New text value. }
EventCharacterDataModified mirrors DOMCharacterDataModified event.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-characterDataModified
func (v EventCharacterDataModified) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventCharacterDataModified) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventCharacterDataModified) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventCharacterDataModified) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventChildNodeCountUpdated struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed. ChildNodeCount int64 `json:"childNodeCount"` // New node count. }
EventChildNodeCountUpdated fired when Container's child node count has changed.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeCountUpdated
func (v EventChildNodeCountUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventChildNodeCountUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventChildNodeCountUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventChildNodeCountUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventChildNodeInserted struct { ParentNodeID cdp.NodeID `json:"parentNodeId"` // Id of the node that has changed. PreviousNodeID cdp.NodeID `json:"previousNodeId"` // If of the previous siblint. Node *cdp.Node `json:"node"` // Inserted node data. }
EventChildNodeInserted mirrors DOMNodeInserted event.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeInserted
func (v EventChildNodeInserted) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventChildNodeInserted) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventChildNodeInserted) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventChildNodeInserted) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventChildNodeRemoved struct { ParentNodeID cdp.NodeID `json:"parentNodeId"` // Parent id. NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has been removed. }
EventChildNodeRemoved mirrors DOMNodeRemoved event.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeRemoved
func (v EventChildNodeRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventChildNodeRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventChildNodeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventChildNodeRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventDistributedNodesUpdated struct { InsertionPointID cdp.NodeID `json:"insertionPointId"` // Insertion point where distributed nodes were updated. DistributedNodes []*cdp.BackendNode `json:"distributedNodes"` // Distributed nodes for given insertion point. }
EventDistributedNodesUpdated called when distribution is changed.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-distributedNodesUpdated
func (v EventDistributedNodesUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventDistributedNodesUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventDistributedNodesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventDistributedNodesUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventDocumentUpdated struct{}
EventDocumentUpdated fired when Document has been totally updated. Node ids are no longer valid.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-documentUpdated
func (v EventDocumentUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventDocumentUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventDocumentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventDocumentUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventInlineStyleInvalidated struct { NodeIds []cdp.NodeID `json:"nodeIds"` // 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.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-inlineStyleInvalidated
func (v EventInlineStyleInvalidated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventInlineStyleInvalidated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventInlineStyleInvalidated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventInlineStyleInvalidated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventPseudoElementAdded struct { ParentID cdp.NodeID `json:"parentId"` // Pseudo element's parent element id. PseudoElement *cdp.Node `json:"pseudoElement"` // The added pseudo element. }
EventPseudoElementAdded called when a pseudo element is added to an element.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementAdded
func (v EventPseudoElementAdded) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventPseudoElementAdded) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventPseudoElementAdded) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventPseudoElementAdded) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventPseudoElementRemoved struct { ParentID cdp.NodeID `json:"parentId"` // Pseudo element's parent element id. PseudoElementID cdp.NodeID `json:"pseudoElementId"` // The removed pseudo element id. }
EventPseudoElementRemoved called when a pseudo element is removed from an element.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementRemoved
func (v EventPseudoElementRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventPseudoElementRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventPseudoElementRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventPseudoElementRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventSetChildNodes struct { ParentID cdp.NodeID `json:"parentId"` // Parent node id to populate with children. Nodes []*cdp.Node `json:"nodes"` // 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.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-setChildNodes
func (v EventSetChildNodes) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventSetChildNodes) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventSetChildNodes) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventSetChildNodes) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventShadowRootPopped struct { HostID cdp.NodeID `json:"hostId"` // Host element id. RootID cdp.NodeID `json:"rootId"` // Shadow root id. }
EventShadowRootPopped called when shadow root is popped from the element.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPopped
func (v EventShadowRootPopped) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventShadowRootPopped) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventShadowRootPopped) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventShadowRootPopped) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventShadowRootPushed struct { HostID cdp.NodeID `json:"hostId"` // Host element id. Root *cdp.Node `json:"root"` // Shadow root. }
EventShadowRootPushed called when shadow root is pushed into the element.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPushed
func (v EventShadowRootPushed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventShadowRootPushed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventShadowRootPushed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventShadowRootPushed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FocusParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. }
FocusParams focuses the given element.
func Focus() *FocusParams
Focus focuses the given element.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-focus
parameters:
func (p *FocusParams) Do(ctx context.Context) (err error)
Do executes DOM.focus against the provided context.
func (v FocusParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v FocusParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *FocusParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *FocusParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p FocusParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *FocusParams
WithBackendNodeID identifier of the backend node.
func (p FocusParams) WithNodeID(nodeID cdp.NodeID) *FocusParams
WithNodeID identifier of the node.
func (p FocusParams) WithObjectID(objectID runtime.RemoteObjectID) *FocusParams
WithObjectID JavaScript object id of the node wrapper.
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(nodeID cdp.NodeID) *GetAttributesParams
GetAttributes returns attributes for the specified node.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getAttributes
parameters:
nodeID - Id of the node to retrieve attibutes for.
Do executes DOM.getAttributes against the provided context.
returns:
attributes - An interleaved array of node attribute names and values.
func (v GetAttributesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetAttributesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetAttributesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetAttributesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetAttributesReturns struct { Attributes []string `json:"attributes,omitempty"` // An interleaved array of node attribute names and values. }
GetAttributesReturns return values.
func (v GetAttributesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetAttributesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetAttributesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetAttributesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetBoxModelParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. }
GetBoxModelParams returns boxes for the given node.
func GetBoxModel() *GetBoxModelParams
GetBoxModel returns boxes for the given node.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getBoxModel
parameters:
Do executes DOM.getBoxModel against the provided context.
returns:
model - Box model for the node.
func (v GetBoxModelParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetBoxModelParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetBoxModelParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetBoxModelParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p GetBoxModelParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetBoxModelParams
WithBackendNodeID identifier of the backend node.
func (p GetBoxModelParams) WithNodeID(nodeID cdp.NodeID) *GetBoxModelParams
WithNodeID identifier of the node.
func (p GetBoxModelParams) WithObjectID(objectID runtime.RemoteObjectID) *GetBoxModelParams
WithObjectID JavaScript object id of the node wrapper.
type GetBoxModelReturns struct { Model *BoxModel `json:"model,omitempty"` // Box model for the node. }
GetBoxModelReturns return values.
func (v GetBoxModelReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetBoxModelReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetBoxModelReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetBoxModelReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetContentQuadsParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. }
GetContentQuadsParams returns quads that describe node position on the page. This method might return multiple quads for inline nodes.
func GetContentQuads() *GetContentQuadsParams
GetContentQuads returns quads that describe node position on the page. This method might return multiple quads for inline nodes.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getContentQuads
parameters:
Do executes DOM.getContentQuads against the provided context.
returns:
quads - Quads that describe node layout relative to viewport.
func (v GetContentQuadsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetContentQuadsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetContentQuadsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetContentQuadsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p GetContentQuadsParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetContentQuadsParams
WithBackendNodeID identifier of the backend node.
func (p GetContentQuadsParams) WithNodeID(nodeID cdp.NodeID) *GetContentQuadsParams
WithNodeID identifier of the node.
func (p GetContentQuadsParams) WithObjectID(objectID runtime.RemoteObjectID) *GetContentQuadsParams
WithObjectID JavaScript object id of the node wrapper.
type GetContentQuadsReturns struct { Quads []Quad `json:"quads,omitempty"` // Quads that describe node layout relative to viewport. }
GetContentQuadsReturns return values.
func (v GetContentQuadsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetContentQuadsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetContentQuadsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetContentQuadsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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() *GetDocumentParams
GetDocument returns the root DOM node (and optionally the subtree) to the caller.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getDocument
parameters:
Do executes DOM.getDocument against the provided context.
returns:
root - Resulting node.
func (v GetDocumentParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetDocumentParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetDocumentParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (p GetDocumentParams) WithPierce(pierce bool) *GetDocumentParams
WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
GetDocumentReturns return values.
func (v GetDocumentReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetDocumentReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetDocumentReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetFileInfoParams struct { ObjectID runtime.RemoteObjectID `json:"objectId"` // JavaScript object id of the node wrapper. }
GetFileInfoParams returns file information for the given File wrapper.
func GetFileInfo(objectID runtime.RemoteObjectID) *GetFileInfoParams
GetFileInfo returns file information for the given File wrapper.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getFileInfo
parameters:
objectID - JavaScript object id of the node wrapper.
Do executes DOM.getFileInfo against the provided context.
returns:
path
func (v GetFileInfoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetFileInfoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetFileInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetFileInfoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
GetFileInfoReturns return values.
func (v GetFileInfoReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetFileInfoReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetFileInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetFileInfoReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
GetFrameOwnerParams returns iframe node that owns iframe with the given domain.
func GetFrameOwner(frameID cdp.FrameID) *GetFrameOwnerParams
GetFrameOwner returns iframe node that owns iframe with the given domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getFrameOwner
parameters:
frameID
func (p *GetFrameOwnerParams) Do(ctx context.Context) (backendNodeID cdp.BackendNodeID, nodeID cdp.NodeID, err error)
Do executes DOM.getFrameOwner against the provided context.
returns:
backendNodeID - Resulting node. nodeID - Id of the node at given coordinates, only when enabled and requested document.
func (v GetFrameOwnerParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetFrameOwnerParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetFrameOwnerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetFrameOwnerParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetFrameOwnerReturns struct { BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Resulting node. NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node at given coordinates, only when enabled and requested document. }
GetFrameOwnerReturns return values.
func (v GetFrameOwnerReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetFrameOwnerReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetFrameOwnerReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetFrameOwnerReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNodeForLocationParams struct { X int64 `json:"x"` // X coordinate. Y int64 `json:"y"` // Y coordinate. IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"` // False to skip to the nearest non-UA shadow root ancestor (default: false). IgnorePointerEventsNone bool `json:"ignorePointerEventsNone,omitempty"` // Whether to ignore pointer-events: none on elements and hit test them. }
GetNodeForLocationParams returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.
func GetNodeForLocation(x int64, y int64) *GetNodeForLocationParams
GetNodeForLocation returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getNodeForLocation
parameters:
x - X coordinate. y - Y coordinate.
func (p *GetNodeForLocationParams) Do(ctx context.Context) (backendNodeID cdp.BackendNodeID, frameID cdp.FrameID, nodeID cdp.NodeID, err error)
Do executes DOM.getNodeForLocation against the provided context.
returns:
backendNodeID - Resulting node. frameID - Frame this node belongs to. nodeID - Id of the node at given coordinates, only when enabled and requested document.
func (v GetNodeForLocationParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetNodeForLocationParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetNodeForLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetNodeForLocationParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p GetNodeForLocationParams) WithIgnorePointerEventsNone(ignorePointerEventsNone bool) *GetNodeForLocationParams
WithIgnorePointerEventsNone whether to ignore pointer-events: none on elements and hit test them.
func (p GetNodeForLocationParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *GetNodeForLocationParams
WithIncludeUserAgentShadowDOM false to skip to the nearest non-UA shadow root ancestor (default: false).
type GetNodeForLocationReturns struct { BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Resulting node. FrameID cdp.FrameID `json:"frameId,omitempty"` // Frame this node belongs to. NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node at given coordinates, only when enabled and requested document. }
GetNodeForLocationReturns return values.
func (v GetNodeForLocationReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetNodeForLocationReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetNodeForLocationReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetNodeForLocationReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNodeStackTracesParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get stack traces for. }
GetNodeStackTracesParams gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
func GetNodeStackTraces(nodeID cdp.NodeID) *GetNodeStackTracesParams
GetNodeStackTraces gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getNodeStackTraces
parameters:
nodeID - Id of the node to get stack traces for.
func (p *GetNodeStackTracesParams) Do(ctx context.Context) (creation *runtime.StackTrace, err error)
Do executes DOM.getNodeStackTraces against the provided context.
returns:
creation - Creation stack trace, if available.
func (v GetNodeStackTracesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetNodeStackTracesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetNodeStackTracesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetNodeStackTracesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNodeStackTracesReturns struct { Creation *runtime.StackTrace `json:"creation,omitempty"` // Creation stack trace, if available. }
GetNodeStackTracesReturns return values.
func (v GetNodeStackTracesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetNodeStackTracesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetNodeStackTracesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetNodeStackTracesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNodesForSubtreeByStyleParams struct { NodeID cdp.NodeID `json:"nodeId"` // Node ID pointing to the root of a subtree. ComputedStyles []*CSSComputedStyleProperty `json:"computedStyles"` // The style to filter nodes by (includes nodes if any of properties matches). Pierce bool `json:"pierce,omitempty"` // Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false). }
GetNodesForSubtreeByStyleParams finds nodes with a given computed style in a subtree.
func GetNodesForSubtreeByStyle(nodeID cdp.NodeID, computedStyles []*CSSComputedStyleProperty) *GetNodesForSubtreeByStyleParams
GetNodesForSubtreeByStyle finds nodes with a given computed style in a subtree.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getNodesForSubtreeByStyle
parameters:
nodeID - Node ID pointing to the root of a subtree. computedStyles - The style to filter nodes by (includes nodes if any of properties matches).
func (p *GetNodesForSubtreeByStyleParams) Do(ctx context.Context) (nodeIds []cdp.NodeID, err error)
Do executes DOM.getNodesForSubtreeByStyle against the provided context.
returns:
nodeIds - Resulting nodes.
func (v GetNodesForSubtreeByStyleParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetNodesForSubtreeByStyleParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetNodesForSubtreeByStyleParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetNodesForSubtreeByStyleParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p GetNodesForSubtreeByStyleParams) WithPierce(pierce bool) *GetNodesForSubtreeByStyleParams
WithPierce whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).
type GetNodesForSubtreeByStyleReturns struct { NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Resulting nodes. }
GetNodesForSubtreeByStyleReturns return values.
func (v GetNodesForSubtreeByStyleReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetNodesForSubtreeByStyleReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetNodesForSubtreeByStyleReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetNodesForSubtreeByStyleReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetOuterHTMLParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. }
GetOuterHTMLParams returns node's HTML markup.
func GetOuterHTML() *GetOuterHTMLParams
GetOuterHTML returns node's HTML markup.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getOuterHTML
parameters:
Do executes DOM.getOuterHTML against the provided context.
returns:
outerHTML - Outer HTML markup.
func (v GetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetOuterHTMLParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetOuterHTMLParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p GetOuterHTMLParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetOuterHTMLParams
WithBackendNodeID identifier of the backend node.
func (p GetOuterHTMLParams) WithNodeID(nodeID cdp.NodeID) *GetOuterHTMLParams
WithNodeID identifier of the node.
func (p GetOuterHTMLParams) WithObjectID(objectID runtime.RemoteObjectID) *GetOuterHTMLParams
WithObjectID JavaScript object id of the node wrapper.
type GetOuterHTMLReturns struct { OuterHTML string `json:"outerHTML,omitempty"` // Outer HTML markup. }
GetOuterHTMLReturns return values.
func (v GetOuterHTMLReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetOuterHTMLReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetOuterHTMLReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetOuterHTMLReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
GetRelayoutBoundaryParams returns the id of the nearest ancestor that is a relayout boundary.
func GetRelayoutBoundary(nodeID cdp.NodeID) *GetRelayoutBoundaryParams
GetRelayoutBoundary returns the id of the nearest ancestor that is a relayout boundary.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getRelayoutBoundary
parameters:
nodeID - Id of the node.
Do executes DOM.getRelayoutBoundary against the provided context.
returns:
nodeID - Relayout boundary node id for the given node.
func (v GetRelayoutBoundaryParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetRelayoutBoundaryParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetRelayoutBoundaryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetRelayoutBoundaryParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetRelayoutBoundaryReturns struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Relayout boundary node id for the given node. }
GetRelayoutBoundaryReturns return values.
func (v GetRelayoutBoundaryReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetRelayoutBoundaryReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetRelayoutBoundaryReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetRelayoutBoundaryReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 search with the given identifier.
func GetSearchResults(searchID string, fromIndex int64, toIndex int64) *GetSearchResultsParams
GetSearchResults returns search results from given fromIndex to given toIndex from the search with the given identifier.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getSearchResults
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.
Do executes DOM.getSearchResults against the provided context.
returns:
nodeIds - Ids of the search result nodes.
func (v GetSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetSearchResultsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetSearchResultsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetSearchResultsReturns struct { NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Ids of the search result nodes. }
GetSearchResultsReturns return values.
func (v GetSearchResultsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetSearchResultsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetSearchResultsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetSearchResultsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MarkUndoableStateParams struct{}
MarkUndoableStateParams marks last undoable state.
func MarkUndoableState() *MarkUndoableStateParams
MarkUndoableState marks last undoable state.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-markUndoableState
func (p *MarkUndoableStateParams) Do(ctx context.Context) (err error)
Do executes DOM.markUndoableState against the provided context.
func (v MarkUndoableStateParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v MarkUndoableStateParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *MarkUndoableStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *MarkUndoableStateParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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.
MoveTo moves node into the new container, places it before the given anchor.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-moveTo
parameters:
nodeID - Id of the node to move. targetNodeID - Id of the element to drop the moved node into.
Do executes DOM.moveTo against the provided context.
returns:
nodeID - New id of the moved node.
func (v MoveToParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v MoveToParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *MoveToParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *MoveToParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // New id of the moved node. }
MoveToReturns return values.
func (v MoveToReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v MoveToReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *MoveToReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *MoveToReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(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.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-performSearch
parameters:
query - Plain text or query selector or XPath search query.
func (p *PerformSearchParams) Do(ctx context.Context) (searchID string, resultCount int64, err error)
Do executes DOM.performSearch against the provided context.
returns:
searchID - Unique search session identifier. resultCount - Number of search results.
func (v PerformSearchParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v PerformSearchParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *PerformSearchParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PerformSearchParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p PerformSearchParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *PerformSearchParams
WithIncludeUserAgentShadowDOM true to search in user agent shadow DOM.
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 (v PerformSearchReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v PerformSearchReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *PerformSearchReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PerformSearchReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(path string) *PushNodeByPathToFrontendParams
PushNodeByPathToFrontend requests that the node is sent to the caller given its path. // FIXME, use XPath.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-pushNodeByPathToFrontend
parameters:
path - Path to node in the proprietary format.
Do executes DOM.pushNodeByPathToFrontend against the provided context.
returns:
nodeID - Id of the node for given path.
func (v PushNodeByPathToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v PushNodeByPathToFrontendParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *PushNodeByPathToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PushNodeByPathToFrontendParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PushNodeByPathToFrontendReturns struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node for given path. }
PushNodeByPathToFrontendReturns return values.
func (v PushNodeByPathToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v PushNodeByPathToFrontendReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *PushNodeByPathToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PushNodeByPathToFrontendReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(backendNodeIds []cdp.BackendNodeID) *PushNodesByBackendIdsToFrontendParams
PushNodesByBackendIdsToFrontend requests that a batch of nodes is sent to the caller given their backend node ids.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-pushNodesByBackendIdsToFrontend
parameters:
backendNodeIds - The array of backend node ids.
func (p *PushNodesByBackendIdsToFrontendParams) Do(ctx context.Context) (nodeIds []cdp.NodeID, err error)
Do executes DOM.pushNodesByBackendIdsToFrontend against the provided context.
returns:
nodeIds - The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.
func (v PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v PushNodesByBackendIdsToFrontendParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (v PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v PushNodesByBackendIdsToFrontendReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
Quad an array of quad vertices, x immediately followed by y for each point, points clock-wise.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-Quad
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(nodeID cdp.NodeID, selector string) *QuerySelectorAllParams
QuerySelectorAll executes querySelectorAll on a given node.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-querySelectorAll
parameters:
nodeID - Id of the node to query upon. selector - Selector string.
Do executes DOM.querySelectorAll against the provided context.
returns:
nodeIds - Query selector result.
func (v QuerySelectorAllParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v QuerySelectorAllParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *QuerySelectorAllParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *QuerySelectorAllParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type QuerySelectorAllReturns struct { NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Query selector result. }
QuerySelectorAllReturns return values.
func (v QuerySelectorAllReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v QuerySelectorAllReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *QuerySelectorAllReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *QuerySelectorAllReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(nodeID cdp.NodeID, selector string) *QuerySelectorParams
QuerySelector executes querySelector on a given node.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-querySelector
parameters:
nodeID - Id of the node to query upon. selector - Selector string.
Do executes DOM.querySelector against the provided context.
returns:
nodeID - Query selector result.
func (v QuerySelectorParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v QuerySelectorParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *QuerySelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *QuerySelectorParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type QuerySelectorReturns struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Query selector result. }
QuerySelectorReturns return values.
func (v QuerySelectorReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v QuerySelectorReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *QuerySelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *QuerySelectorReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Rect struct { X float64 `json:"x"` // X coordinate Y float64 `json:"y"` // Y coordinate Width float64 `json:"width"` // Rectangle width Height float64 `json:"height"` // Rectangle height }
Rect Rectangle.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-Rect
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
type RedoParams struct{}
RedoParams re-does the last undone action.
func Redo() *RedoParams
Redo re-does the last undone action.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-redo
func (p *RedoParams) Do(ctx context.Context) (err error)
Do executes DOM.redo against the provided context.
func (v RedoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v RedoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *RedoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RedoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(nodeID cdp.NodeID, name string) *RemoveAttributeParams
RemoveAttribute removes attribute with given name from an element with given id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-removeAttribute
parameters:
nodeID - Id of the element to remove attribute from. name - Name of the attribute to remove.
func (p *RemoveAttributeParams) Do(ctx context.Context) (err error)
Do executes DOM.removeAttribute against the provided context.
func (v RemoveAttributeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v RemoveAttributeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *RemoveAttributeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RemoveAttributeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
RemoveNodeParams removes node with given id.
func RemoveNode(nodeID cdp.NodeID) *RemoveNodeParams
RemoveNode removes node with given id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-removeNode
parameters:
nodeID - Id of the node to remove.
func (p *RemoveNodeParams) Do(ctx context.Context) (err error)
Do executes DOM.removeNode against the provided context.
func (v RemoveNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v RemoveNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *RemoveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RemoveNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(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.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-requestChildNodes
parameters:
nodeID - Id of the node to get children for.
func (p *RequestChildNodesParams) Do(ctx context.Context) (err error)
Do executes DOM.requestChildNodes against the provided context.
func (v RequestChildNodesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v RequestChildNodesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *RequestChildNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RequestChildNodesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (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 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(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.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-requestNode
parameters:
objectID - JavaScript object id to convert into node.
Do executes DOM.requestNode against the provided context.
returns:
nodeID - Node id for given object.
func (v RequestNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v RequestNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *RequestNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RequestNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestNodeReturns struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Node id for given object. }
RequestNodeReturns return values.
func (v RequestNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v RequestNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *RequestNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RequestNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResolveNodeParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node to resolve. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Backend identifier of the node to resolve. ObjectGroup string `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects. ExecutionContextID runtime.ExecutionContextID `json:"executionContextId,omitempty"` // Execution context in which to resolve the node. }
ResolveNodeParams resolves the JavaScript node object for a given NodeId or BackendNodeId.
func ResolveNode() *ResolveNodeParams
ResolveNode resolves the JavaScript node object for a given NodeId or BackendNodeId.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-resolveNode
parameters:
func (p *ResolveNodeParams) Do(ctx context.Context) (object *runtime.RemoteObject, err error)
Do executes DOM.resolveNode against the provided context.
returns:
object - JavaScript object wrapper for given node.
func (v ResolveNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v ResolveNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *ResolveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ResolveNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p ResolveNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ResolveNodeParams
WithBackendNodeID backend identifier of the node to resolve.
func (p ResolveNodeParams) WithExecutionContextID(executionContextID runtime.ExecutionContextID) *ResolveNodeParams
WithExecutionContextID execution context in which to resolve the node.
func (p ResolveNodeParams) WithNodeID(nodeID cdp.NodeID) *ResolveNodeParams
WithNodeID ID of the node to resolve.
func (p ResolveNodeParams) WithObjectGroup(objectGroup string) *ResolveNodeParams
WithObjectGroup symbolic group name that can be used to release multiple objects.
type ResolveNodeReturns struct { Object *runtime.RemoteObject `json:"object,omitempty"` // JavaScript object wrapper for given node. }
ResolveNodeReturns return values.
func (v ResolveNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v ResolveNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *ResolveNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ResolveNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ScrollIntoViewIfNeededParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. Rect *Rect `json:"rect,omitempty"` // The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView. }
ScrollIntoViewIfNeededParams scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.
func ScrollIntoViewIfNeeded() *ScrollIntoViewIfNeededParams
ScrollIntoViewIfNeeded scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-scrollIntoViewIfNeeded
parameters:
func (p *ScrollIntoViewIfNeededParams) Do(ctx context.Context) (err error)
Do executes DOM.scrollIntoViewIfNeeded against the provided context.
func (v ScrollIntoViewIfNeededParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v ScrollIntoViewIfNeededParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *ScrollIntoViewIfNeededParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ScrollIntoViewIfNeededParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p ScrollIntoViewIfNeededParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ScrollIntoViewIfNeededParams
WithBackendNodeID identifier of the backend node.
func (p ScrollIntoViewIfNeededParams) WithNodeID(nodeID cdp.NodeID) *ScrollIntoViewIfNeededParams
WithNodeID identifier of the node.
func (p ScrollIntoViewIfNeededParams) WithObjectID(objectID runtime.RemoteObjectID) *ScrollIntoViewIfNeededParams
WithObjectID JavaScript object id of the node wrapper.
func (p ScrollIntoViewIfNeededParams) WithRect(rect *Rect) *ScrollIntoViewIfNeededParams
WithRect the rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.
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.
SetAttributeValue sets attribute for an element with given id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setAttributeValue
parameters:
nodeID - Id of the element to set attribute for. name - Attribute name. value - Attribute value.
func (p *SetAttributeValueParams) Do(ctx context.Context) (err error)
Do executes DOM.setAttributeValue against the provided context.
func (v SetAttributeValueParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetAttributeValueParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetAttributeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetAttributeValueParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(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.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setAttributesAsText
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 (p *SetAttributesAsTextParams) Do(ctx context.Context) (err error)
Do executes DOM.setAttributesAsText against the provided context.
func (v SetAttributesAsTextParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetAttributesAsTextParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetAttributesAsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetAttributesAsTextParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 struct { Files []string `json:"files"` // Array of file paths to set. NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. }
SetFileInputFilesParams sets files for the given file input element.
func SetFileInputFiles(files []string) *SetFileInputFilesParams
SetFileInputFiles sets files for the given file input element.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setFileInputFiles
parameters:
files - Array of file paths to set.
func (p *SetFileInputFilesParams) Do(ctx context.Context) (err error)
Do executes DOM.setFileInputFiles against the provided context.
func (v SetFileInputFilesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetFileInputFilesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetFileInputFilesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetFileInputFilesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p SetFileInputFilesParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *SetFileInputFilesParams
WithBackendNodeID identifier of the backend node.
func (p SetFileInputFilesParams) WithNodeID(nodeID cdp.NodeID) *SetFileInputFilesParams
WithNodeID identifier of the node.
func (p SetFileInputFilesParams) WithObjectID(objectID runtime.RemoteObjectID) *SetFileInputFilesParams
WithObjectID JavaScript object id of the node wrapper.
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(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).
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setInspectedNode
parameters:
nodeID - DOM node id to be accessible by means of $x command line API.
func (p *SetInspectedNodeParams) Do(ctx context.Context) (err error)
Do executes DOM.setInspectedNode against the provided context.
func (v SetInspectedNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetInspectedNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetInspectedNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetInspectedNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(nodeID cdp.NodeID, name string) *SetNodeNameParams
SetNodeName sets node name for a node with given id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setNodeName
parameters:
nodeID - Id of the node to set name for. name - New node's name.
Do executes DOM.setNodeName against the provided context.
returns:
nodeID - New node's id.
func (v SetNodeNameParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetNodeNameParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetNodeNameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetNodeNameParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
SetNodeNameReturns return values.
func (v SetNodeNameReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetNodeNameReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetNodeNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetNodeNameReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
SetNodeStackTracesEnabledParams sets if stack traces should be captured for Nodes. See Node.getNodeStackTraces. Default is disabled.
func SetNodeStackTracesEnabled(enable bool) *SetNodeStackTracesEnabledParams
SetNodeStackTracesEnabled sets if stack traces should be captured for Nodes. See Node.getNodeStackTraces. Default is disabled.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setNodeStackTracesEnabled
parameters:
enable - Enable or disable.
func (p *SetNodeStackTracesEnabledParams) Do(ctx context.Context) (err error)
Do executes DOM.setNodeStackTracesEnabled against the provided context.
func (v SetNodeStackTracesEnabledParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetNodeStackTracesEnabledParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetNodeStackTracesEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetNodeStackTracesEnabledParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(nodeID cdp.NodeID, value string) *SetNodeValueParams
SetNodeValue sets node value for a node with given id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setNodeValue
parameters:
nodeID - Id of the node to set value for. value - New node's value.
func (p *SetNodeValueParams) Do(ctx context.Context) (err error)
Do executes DOM.setNodeValue against the provided context.
func (v SetNodeValueParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetNodeValueParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetNodeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetNodeValueParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(nodeID cdp.NodeID, outerHTML string) *SetOuterHTMLParams
SetOuterHTML sets node HTML markup, returns new node id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setOuterHTML
parameters:
nodeID - Id of the node to set markup for. outerHTML - Outer HTML markup to set.
func (p *SetOuterHTMLParams) Do(ctx context.Context) (err error)
Do executes DOM.setOuterHTML against the provided context.
func (v SetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetOuterHTMLParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetOuterHTMLParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ShapeOutsideInfo struct { Bounds Quad `json:"bounds"` // Shape bounds Shape []easyjson.RawMessage `json:"shape"` // Shape coordinate details MarginShape []easyjson.RawMessage `json:"marginShape"` // Margin shape bounds }
ShapeOutsideInfo CSS Shape Outside details.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-ShapeOutsideInfo
func (v ShapeOutsideInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v ShapeOutsideInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *ShapeOutsideInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ShapeOutsideInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UndoParams struct{}
UndoParams undoes the last performed action.
func Undo() *UndoParams
Undo undoes the last performed action.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-undo
func (p *UndoParams) Do(ctx context.Context) (err error)
Do executes DOM.undo against the provided context.
func (v UndoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v UndoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *UndoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *UndoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
Package dom imports 7 packages (graph) and is imported by 40 packages. Updated 2021-01-06. Refresh now. Tools for package owners.