package dom

Import Path
	github.com/chromedp/cdproto/dom (on go.dev)

Dependency Relation
	imports 8 packages, and imported by 8 packages

Involved Source Files 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. easyjson.go events.go types.go
Package-Level Type Names (total 95)
/* sort by: | */
BoxModel box model. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-BoxModel // Border box // Content box // Node height // Margin box // Padding box // Shape outside coordinates // Node width MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface BoxModel : github.com/goccy/go-json.Marshaler *BoxModel : github.com/goccy/go-json.Unmarshaler BoxModel : github.com/mailru/easyjson.Marshaler *BoxModel : github.com/mailru/easyjson.MarshalerUnmarshaler *BoxModel : github.com/mailru/easyjson.Unmarshaler BoxModel : encoding/json.Marshaler *BoxModel : encoding/json.Unmarshaler func (*GetBoxModelParams).Do(ctx context.Context) (model *BoxModel, err error) func github.com/chromedp/chromedp.Dimensions(sel interface{}, model **BoxModel, opts ...chromedp.QueryOption) chromedp.QueryAction
CollectClassNamesFromSubtreeParams collects class names for the node with given id and all of it's child nodes. // Id of the node to collect class names. Do executes DOM.collectClassNamesFromSubtree against the provided context. returns: classNames - Class name list. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface CollectClassNamesFromSubtreeParams : github.com/goccy/go-json.Marshaler *CollectClassNamesFromSubtreeParams : github.com/goccy/go-json.Unmarshaler CollectClassNamesFromSubtreeParams : github.com/mailru/easyjson.Marshaler *CollectClassNamesFromSubtreeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *CollectClassNamesFromSubtreeParams : github.com/mailru/easyjson.Unmarshaler CollectClassNamesFromSubtreeParams : encoding/json.Marshaler *CollectClassNamesFromSubtreeParams : encoding/json.Unmarshaler func CollectClassNamesFromSubtree(nodeID cdp.NodeID) *CollectClassNamesFromSubtreeParams
CollectClassNamesFromSubtreeReturns return values. // Class name list. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface CollectClassNamesFromSubtreeReturns : github.com/goccy/go-json.Marshaler *CollectClassNamesFromSubtreeReturns : github.com/goccy/go-json.Unmarshaler CollectClassNamesFromSubtreeReturns : github.com/mailru/easyjson.Marshaler *CollectClassNamesFromSubtreeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *CollectClassNamesFromSubtreeReturns : github.com/mailru/easyjson.Unmarshaler CollectClassNamesFromSubtreeReturns : encoding/json.Marshaler *CollectClassNamesFromSubtreeReturns : encoding/json.Unmarshaler
CopyToParams creates a deep copy of the specified node and places it into the target container before the given anchor. // Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId). // Id of the node to copy. // Id of the element to drop the copy into. Do executes DOM.copyTo against the provided context. returns: nodeID - Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithInsertBeforeNodeID drop the copy before this node (if absent, the copy becomes the last child of targetNodeId). CopyToParams : github.com/goccy/go-json.Marshaler *CopyToParams : github.com/goccy/go-json.Unmarshaler CopyToParams : github.com/mailru/easyjson.Marshaler *CopyToParams : github.com/mailru/easyjson.MarshalerUnmarshaler *CopyToParams : github.com/mailru/easyjson.Unmarshaler CopyToParams : encoding/json.Marshaler *CopyToParams : encoding/json.Unmarshaler func CopyTo(nodeID cdp.NodeID, targetNodeID cdp.NodeID) *CopyToParams func CopyToParams.WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *CopyToParams
CopyToReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface CopyToReturns : github.com/goccy/go-json.Marshaler *CopyToReturns : github.com/goccy/go-json.Unmarshaler CopyToReturns : github.com/mailru/easyjson.Marshaler *CopyToReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *CopyToReturns : github.com/mailru/easyjson.Unmarshaler CopyToReturns : encoding/json.Marshaler *CopyToReturns : encoding/json.Unmarshaler
CSSComputedStyleProperty [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-CSSComputedStyleProperty // address field name, for example GIVEN_NAME. // address field value, for example Jon Doe. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface CSSComputedStyleProperty : github.com/goccy/go-json.Marshaler *CSSComputedStyleProperty : github.com/goccy/go-json.Unmarshaler CSSComputedStyleProperty : github.com/mailru/easyjson.Marshaler *CSSComputedStyleProperty : github.com/mailru/easyjson.MarshalerUnmarshaler *CSSComputedStyleProperty : github.com/mailru/easyjson.Unmarshaler CSSComputedStyleProperty : encoding/json.Marshaler *CSSComputedStyleProperty : encoding/json.Unmarshaler func GetNodesForSubtreeByStyle(nodeID cdp.NodeID, computedStyles []*CSSComputedStyleProperty) *GetNodesForSubtreeByStyleParams
DescribeNodeParams describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation. // Identifier of the backend node. // 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. // Identifier of the node. // JavaScript object id of the node wrapper. // Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Do executes DOM.describeNode against the provided context. returns: node - Node description. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID identifier of the backend node. 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. WithNodeID identifier of the node. WithObjectID JavaScript object id of the node wrapper. WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). DescribeNodeParams : github.com/goccy/go-json.Marshaler *DescribeNodeParams : github.com/goccy/go-json.Unmarshaler DescribeNodeParams : github.com/mailru/easyjson.Marshaler *DescribeNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DescribeNodeParams : github.com/mailru/easyjson.Unmarshaler DescribeNodeParams : encoding/json.Marshaler *DescribeNodeParams : encoding/json.Unmarshaler func DescribeNode() *DescribeNodeParams func DescribeNodeParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *DescribeNodeParams func DescribeNodeParams.WithDepth(depth int64) *DescribeNodeParams func DescribeNodeParams.WithNodeID(nodeID cdp.NodeID) *DescribeNodeParams func DescribeNodeParams.WithObjectID(objectID runtime.RemoteObjectID) *DescribeNodeParams func DescribeNodeParams.WithPierce(pierce bool) *DescribeNodeParams
DescribeNodeReturns return values. // Node description. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface DescribeNodeReturns : github.com/goccy/go-json.Marshaler *DescribeNodeReturns : github.com/goccy/go-json.Unmarshaler DescribeNodeReturns : github.com/mailru/easyjson.Marshaler *DescribeNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *DescribeNodeReturns : github.com/mailru/easyjson.Unmarshaler DescribeNodeReturns : encoding/json.Marshaler *DescribeNodeReturns : encoding/json.Unmarshaler
DisableParams disables DOM agent for the given page. Do executes DOM.disable against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *DisableParams : github.com/chromedp/chromedp.Action *DisableParams : github.com/chromedp/chromedp.CallAction *DisableParams : github.com/chromedp/chromedp.EmulateAction *DisableParams : github.com/chromedp/chromedp.EvaluateAction *DisableParams : github.com/chromedp/chromedp.KeyAction *DisableParams : github.com/chromedp/chromedp.MouseAction *DisableParams : github.com/chromedp/chromedp.NavigateAction *DisableParams : github.com/chromedp/chromedp.PollAction *DisableParams : github.com/chromedp/chromedp.QueryAction DisableParams : github.com/goccy/go-json.Marshaler *DisableParams : github.com/goccy/go-json.Unmarshaler DisableParams : github.com/mailru/easyjson.Marshaler *DisableParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DisableParams : github.com/mailru/easyjson.Unmarshaler DisableParams : encoding/json.Marshaler *DisableParams : encoding/json.Unmarshaler func Disable() *DisableParams
DiscardSearchResultsParams discards search results from the session with the given id. getSearchResults should no longer be called for that search. // Unique search session identifier. Do executes DOM.discardSearchResults against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *DiscardSearchResultsParams : github.com/chromedp/chromedp.Action *DiscardSearchResultsParams : github.com/chromedp/chromedp.CallAction *DiscardSearchResultsParams : github.com/chromedp/chromedp.EmulateAction *DiscardSearchResultsParams : github.com/chromedp/chromedp.EvaluateAction *DiscardSearchResultsParams : github.com/chromedp/chromedp.KeyAction *DiscardSearchResultsParams : github.com/chromedp/chromedp.MouseAction *DiscardSearchResultsParams : github.com/chromedp/chromedp.NavigateAction *DiscardSearchResultsParams : github.com/chromedp/chromedp.PollAction *DiscardSearchResultsParams : github.com/chromedp/chromedp.QueryAction DiscardSearchResultsParams : github.com/goccy/go-json.Marshaler *DiscardSearchResultsParams : github.com/goccy/go-json.Unmarshaler DiscardSearchResultsParams : github.com/mailru/easyjson.Marshaler *DiscardSearchResultsParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DiscardSearchResultsParams : github.com/mailru/easyjson.Unmarshaler DiscardSearchResultsParams : encoding/json.Marshaler *DiscardSearchResultsParams : encoding/json.Unmarshaler func DiscardSearchResults(searchID string) *DiscardSearchResultsParams
EnableIncludeWhitespace whether to include whitespaces in the children array of returned Nodes. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-enable MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the EnableIncludeWhitespace as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. EnableIncludeWhitespace : github.com/goccy/go-json.Marshaler *EnableIncludeWhitespace : github.com/goccy/go-json.Unmarshaler EnableIncludeWhitespace : github.com/mailru/easyjson.Marshaler *EnableIncludeWhitespace : github.com/mailru/easyjson.MarshalerUnmarshaler *EnableIncludeWhitespace : github.com/mailru/easyjson.Unmarshaler EnableIncludeWhitespace : encoding/json.Marshaler *EnableIncludeWhitespace : encoding/json.Unmarshaler EnableIncludeWhitespace : expvar.Var EnableIncludeWhitespace : fmt.Stringer func EnableParams.WithIncludeWhitespace(includeWhitespace EnableIncludeWhitespace) *EnableParams const EnableIncludeWhitespaceAll const EnableIncludeWhitespaceNone
EnableParams enables DOM agent for the given page. // Whether to include whitespaces in the children array of returned Nodes. Do executes DOM.enable against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithIncludeWhitespace whether to include whitespaces in the children array of returned Nodes. *EnableParams : github.com/chromedp/chromedp.Action *EnableParams : github.com/chromedp/chromedp.CallAction *EnableParams : github.com/chromedp/chromedp.EmulateAction *EnableParams : github.com/chromedp/chromedp.EvaluateAction *EnableParams : github.com/chromedp/chromedp.KeyAction *EnableParams : github.com/chromedp/chromedp.MouseAction *EnableParams : github.com/chromedp/chromedp.NavigateAction *EnableParams : github.com/chromedp/chromedp.PollAction *EnableParams : github.com/chromedp/chromedp.QueryAction EnableParams : github.com/goccy/go-json.Marshaler *EnableParams : github.com/goccy/go-json.Unmarshaler EnableParams : github.com/mailru/easyjson.Marshaler *EnableParams : github.com/mailru/easyjson.MarshalerUnmarshaler *EnableParams : github.com/mailru/easyjson.Unmarshaler EnableParams : encoding/json.Marshaler *EnableParams : encoding/json.Unmarshaler func Enable() *EnableParams func EnableParams.WithIncludeWhitespace(includeWhitespace EnableIncludeWhitespace) *EnableParams
EventAttributeModified fired when Element's attribute is modified. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeModified // Attribute name. // Id of the element to set attribute for. // Attribute value. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventAttributeModified : github.com/goccy/go-json.Marshaler *EventAttributeModified : github.com/goccy/go-json.Unmarshaler EventAttributeModified : github.com/mailru/easyjson.Marshaler *EventAttributeModified : github.com/mailru/easyjson.MarshalerUnmarshaler *EventAttributeModified : github.com/mailru/easyjson.Unmarshaler EventAttributeModified : encoding/json.Marshaler *EventAttributeModified : encoding/json.Unmarshaler
EventAttributeRemoved fired when Element's attribute is removed. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeRemoved // Name of the attribute to remove. // Id of the element to remove attribute from. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventAttributeRemoved : github.com/goccy/go-json.Marshaler *EventAttributeRemoved : github.com/goccy/go-json.Unmarshaler EventAttributeRemoved : github.com/mailru/easyjson.Marshaler *EventAttributeRemoved : github.com/mailru/easyjson.MarshalerUnmarshaler *EventAttributeRemoved : github.com/mailru/easyjson.Unmarshaler EventAttributeRemoved : encoding/json.Marshaler *EventAttributeRemoved : encoding/json.Unmarshaler
EventCharacterDataModified mirrors DOMCharacterDataModified event. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-characterDataModified // New text value. // Id of the node that has changed. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventCharacterDataModified : github.com/goccy/go-json.Marshaler *EventCharacterDataModified : github.com/goccy/go-json.Unmarshaler EventCharacterDataModified : github.com/mailru/easyjson.Marshaler *EventCharacterDataModified : github.com/mailru/easyjson.MarshalerUnmarshaler *EventCharacterDataModified : github.com/mailru/easyjson.Unmarshaler EventCharacterDataModified : encoding/json.Marshaler *EventCharacterDataModified : encoding/json.Unmarshaler
EventChildNodeCountUpdated fired when Container's child node count has changed. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeCountUpdated // New node count. // Id of the node that has changed. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventChildNodeCountUpdated : github.com/goccy/go-json.Marshaler *EventChildNodeCountUpdated : github.com/goccy/go-json.Unmarshaler EventChildNodeCountUpdated : github.com/mailru/easyjson.Marshaler *EventChildNodeCountUpdated : github.com/mailru/easyjson.MarshalerUnmarshaler *EventChildNodeCountUpdated : github.com/mailru/easyjson.Unmarshaler EventChildNodeCountUpdated : encoding/json.Marshaler *EventChildNodeCountUpdated : encoding/json.Unmarshaler
EventChildNodeInserted mirrors DOMNodeInserted event. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeInserted // Inserted node data. // Id of the node that has changed. // Id of the previous sibling. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventChildNodeInserted : github.com/goccy/go-json.Marshaler *EventChildNodeInserted : github.com/goccy/go-json.Unmarshaler EventChildNodeInserted : github.com/mailru/easyjson.Marshaler *EventChildNodeInserted : github.com/mailru/easyjson.MarshalerUnmarshaler *EventChildNodeInserted : github.com/mailru/easyjson.Unmarshaler EventChildNodeInserted : encoding/json.Marshaler *EventChildNodeInserted : encoding/json.Unmarshaler
EventChildNodeRemoved mirrors DOMNodeRemoved event. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeRemoved // Id of the node that has been removed. // Parent id. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventChildNodeRemoved : github.com/goccy/go-json.Marshaler *EventChildNodeRemoved : github.com/goccy/go-json.Unmarshaler EventChildNodeRemoved : github.com/mailru/easyjson.Marshaler *EventChildNodeRemoved : github.com/mailru/easyjson.MarshalerUnmarshaler *EventChildNodeRemoved : github.com/mailru/easyjson.Unmarshaler EventChildNodeRemoved : encoding/json.Marshaler *EventChildNodeRemoved : encoding/json.Unmarshaler
EventDistributedNodesUpdated called when distribution is changed. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-distributedNodesUpdated // Distributed nodes for given insertion point. // Insertion point where distributed nodes were updated. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventDistributedNodesUpdated : github.com/goccy/go-json.Marshaler *EventDistributedNodesUpdated : github.com/goccy/go-json.Unmarshaler EventDistributedNodesUpdated : github.com/mailru/easyjson.Marshaler *EventDistributedNodesUpdated : github.com/mailru/easyjson.MarshalerUnmarshaler *EventDistributedNodesUpdated : github.com/mailru/easyjson.Unmarshaler EventDistributedNodesUpdated : encoding/json.Marshaler *EventDistributedNodesUpdated : encoding/json.Unmarshaler
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 MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventDocumentUpdated : github.com/goccy/go-json.Marshaler *EventDocumentUpdated : github.com/goccy/go-json.Unmarshaler EventDocumentUpdated : github.com/mailru/easyjson.Marshaler *EventDocumentUpdated : github.com/mailru/easyjson.MarshalerUnmarshaler *EventDocumentUpdated : github.com/mailru/easyjson.Unmarshaler EventDocumentUpdated : encoding/json.Marshaler *EventDocumentUpdated : encoding/json.Unmarshaler
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 // Ids of the nodes for which the inline styles have been invalidated. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventInlineStyleInvalidated : github.com/goccy/go-json.Marshaler *EventInlineStyleInvalidated : github.com/goccy/go-json.Unmarshaler EventInlineStyleInvalidated : github.com/mailru/easyjson.Marshaler *EventInlineStyleInvalidated : github.com/mailru/easyjson.MarshalerUnmarshaler *EventInlineStyleInvalidated : github.com/mailru/easyjson.Unmarshaler EventInlineStyleInvalidated : encoding/json.Marshaler *EventInlineStyleInvalidated : encoding/json.Unmarshaler
EventPseudoElementAdded called when a pseudo element is added to an element. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementAdded // Pseudo element's parent element id. // The added pseudo element. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventPseudoElementAdded : github.com/goccy/go-json.Marshaler *EventPseudoElementAdded : github.com/goccy/go-json.Unmarshaler EventPseudoElementAdded : github.com/mailru/easyjson.Marshaler *EventPseudoElementAdded : github.com/mailru/easyjson.MarshalerUnmarshaler *EventPseudoElementAdded : github.com/mailru/easyjson.Unmarshaler EventPseudoElementAdded : encoding/json.Marshaler *EventPseudoElementAdded : encoding/json.Unmarshaler
EventPseudoElementRemoved called when a pseudo element is removed from an element. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementRemoved // Pseudo element's parent element id. // The removed pseudo element id. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventPseudoElementRemoved : github.com/goccy/go-json.Marshaler *EventPseudoElementRemoved : github.com/goccy/go-json.Unmarshaler EventPseudoElementRemoved : github.com/mailru/easyjson.Marshaler *EventPseudoElementRemoved : github.com/mailru/easyjson.MarshalerUnmarshaler *EventPseudoElementRemoved : github.com/mailru/easyjson.Unmarshaler EventPseudoElementRemoved : encoding/json.Marshaler *EventPseudoElementRemoved : encoding/json.Unmarshaler
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 // Child nodes array. // Parent node id to populate with children. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventSetChildNodes : github.com/goccy/go-json.Marshaler *EventSetChildNodes : github.com/goccy/go-json.Unmarshaler EventSetChildNodes : github.com/mailru/easyjson.Marshaler *EventSetChildNodes : github.com/mailru/easyjson.MarshalerUnmarshaler *EventSetChildNodes : github.com/mailru/easyjson.Unmarshaler EventSetChildNodes : encoding/json.Marshaler *EventSetChildNodes : encoding/json.Unmarshaler
EventShadowRootPopped called when shadow root is popped from the element. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPopped // Host element id. // Shadow root id. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventShadowRootPopped : github.com/goccy/go-json.Marshaler *EventShadowRootPopped : github.com/goccy/go-json.Unmarshaler EventShadowRootPopped : github.com/mailru/easyjson.Marshaler *EventShadowRootPopped : github.com/mailru/easyjson.MarshalerUnmarshaler *EventShadowRootPopped : github.com/mailru/easyjson.Unmarshaler EventShadowRootPopped : encoding/json.Marshaler *EventShadowRootPopped : encoding/json.Unmarshaler
EventShadowRootPushed called when shadow root is pushed into the element. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPushed // Host element id. // Shadow root. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventShadowRootPushed : github.com/goccy/go-json.Marshaler *EventShadowRootPushed : github.com/goccy/go-json.Unmarshaler EventShadowRootPushed : github.com/mailru/easyjson.Marshaler *EventShadowRootPushed : github.com/mailru/easyjson.MarshalerUnmarshaler *EventShadowRootPushed : github.com/mailru/easyjson.Unmarshaler EventShadowRootPushed : encoding/json.Marshaler *EventShadowRootPushed : encoding/json.Unmarshaler
EventTopLayerElementsUpdated called when top layer elements are changed. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-topLayerElementsUpdated MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventTopLayerElementsUpdated : github.com/goccy/go-json.Marshaler *EventTopLayerElementsUpdated : github.com/goccy/go-json.Unmarshaler EventTopLayerElementsUpdated : github.com/mailru/easyjson.Marshaler *EventTopLayerElementsUpdated : github.com/mailru/easyjson.MarshalerUnmarshaler *EventTopLayerElementsUpdated : github.com/mailru/easyjson.Unmarshaler EventTopLayerElementsUpdated : encoding/json.Marshaler *EventTopLayerElementsUpdated : encoding/json.Unmarshaler
FocusParams focuses the given element. // Identifier of the backend node. // Identifier of the node. // JavaScript object id of the node wrapper. Do executes DOM.focus against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID identifier of the backend node. WithNodeID identifier of the node. WithObjectID JavaScript object id of the node wrapper. *FocusParams : github.com/chromedp/chromedp.Action *FocusParams : github.com/chromedp/chromedp.CallAction *FocusParams : github.com/chromedp/chromedp.EmulateAction *FocusParams : github.com/chromedp/chromedp.EvaluateAction *FocusParams : github.com/chromedp/chromedp.KeyAction *FocusParams : github.com/chromedp/chromedp.MouseAction *FocusParams : github.com/chromedp/chromedp.NavigateAction *FocusParams : github.com/chromedp/chromedp.PollAction *FocusParams : github.com/chromedp/chromedp.QueryAction FocusParams : github.com/goccy/go-json.Marshaler *FocusParams : github.com/goccy/go-json.Unmarshaler FocusParams : github.com/mailru/easyjson.Marshaler *FocusParams : github.com/mailru/easyjson.MarshalerUnmarshaler *FocusParams : github.com/mailru/easyjson.Unmarshaler FocusParams : encoding/json.Marshaler *FocusParams : encoding/json.Unmarshaler func Focus() *FocusParams func FocusParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *FocusParams func FocusParams.WithNodeID(nodeID cdp.NodeID) *FocusParams func FocusParams.WithObjectID(objectID runtime.RemoteObjectID) *FocusParams
GetAttributesParams returns attributes for the specified node. // Id of the node to collect class names. Do executes DOM.getAttributes against the provided context. returns: attributes - An interleaved array of node attribute names and values. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetAttributesParams : github.com/goccy/go-json.Marshaler *GetAttributesParams : github.com/goccy/go-json.Unmarshaler GetAttributesParams : github.com/mailru/easyjson.Marshaler *GetAttributesParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetAttributesParams : github.com/mailru/easyjson.Unmarshaler GetAttributesParams : encoding/json.Marshaler *GetAttributesParams : encoding/json.Unmarshaler func GetAttributes(nodeID cdp.NodeID) *GetAttributesParams
GetAttributesReturns return values. // An interleaved array of node attribute names and values. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetAttributesReturns : github.com/goccy/go-json.Marshaler *GetAttributesReturns : github.com/goccy/go-json.Unmarshaler GetAttributesReturns : github.com/mailru/easyjson.Marshaler *GetAttributesReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetAttributesReturns : github.com/mailru/easyjson.Unmarshaler GetAttributesReturns : encoding/json.Marshaler *GetAttributesReturns : encoding/json.Unmarshaler
GetBoxModelParams returns boxes for the given node. // Identifier of the backend node. // Identifier of the node. // JavaScript object id of the node wrapper. Do executes DOM.getBoxModel against the provided context. returns: model - Box model for the node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID identifier of the backend node. WithNodeID identifier of the node. WithObjectID JavaScript object id of the node wrapper. GetBoxModelParams : github.com/goccy/go-json.Marshaler *GetBoxModelParams : github.com/goccy/go-json.Unmarshaler GetBoxModelParams : github.com/mailru/easyjson.Marshaler *GetBoxModelParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetBoxModelParams : github.com/mailru/easyjson.Unmarshaler GetBoxModelParams : encoding/json.Marshaler *GetBoxModelParams : encoding/json.Unmarshaler func GetBoxModel() *GetBoxModelParams func GetBoxModelParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetBoxModelParams func GetBoxModelParams.WithNodeID(nodeID cdp.NodeID) *GetBoxModelParams func GetBoxModelParams.WithObjectID(objectID runtime.RemoteObjectID) *GetBoxModelParams
GetBoxModelReturns return values. // Box model for the node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetBoxModelReturns : github.com/goccy/go-json.Marshaler *GetBoxModelReturns : github.com/goccy/go-json.Unmarshaler GetBoxModelReturns : github.com/mailru/easyjson.Marshaler *GetBoxModelReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetBoxModelReturns : github.com/mailru/easyjson.Unmarshaler GetBoxModelReturns : encoding/json.Marshaler *GetBoxModelReturns : encoding/json.Unmarshaler
GetContainerForNodeParams returns the query container of the given node based on container query conditions: containerName, physical, and logical axes. If no axes are provided, the style container is returned, which is the direct parent or the closest element with a matching container-name. ContainerName string LogicalAxes LogicalAxes NodeID cdp.NodeID PhysicalAxes PhysicalAxes Do executes DOM.getContainerForNode against the provided context. returns: nodeID - The container node for the given node, or null if not found. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithContainerName [no description]. WithLogicalAxes [no description]. WithPhysicalAxes [no description]. GetContainerForNodeParams : github.com/goccy/go-json.Marshaler *GetContainerForNodeParams : github.com/goccy/go-json.Unmarshaler GetContainerForNodeParams : github.com/mailru/easyjson.Marshaler *GetContainerForNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetContainerForNodeParams : github.com/mailru/easyjson.Unmarshaler GetContainerForNodeParams : encoding/json.Marshaler *GetContainerForNodeParams : encoding/json.Unmarshaler func GetContainerForNode(nodeID cdp.NodeID) *GetContainerForNodeParams func GetContainerForNodeParams.WithContainerName(containerName string) *GetContainerForNodeParams func GetContainerForNodeParams.WithLogicalAxes(logicalAxes LogicalAxes) *GetContainerForNodeParams func GetContainerForNodeParams.WithPhysicalAxes(physicalAxes PhysicalAxes) *GetContainerForNodeParams
GetContainerForNodeReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetContainerForNodeReturns : github.com/goccy/go-json.Marshaler *GetContainerForNodeReturns : github.com/goccy/go-json.Unmarshaler GetContainerForNodeReturns : github.com/mailru/easyjson.Marshaler *GetContainerForNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetContainerForNodeReturns : github.com/mailru/easyjson.Unmarshaler GetContainerForNodeReturns : encoding/json.Marshaler *GetContainerForNodeReturns : encoding/json.Unmarshaler
GetContentQuadsParams returns quads that describe node position on the page. This method might return multiple quads for inline nodes. // Identifier of the backend node. // Identifier of the node. // JavaScript object id of the node wrapper. Do executes DOM.getContentQuads against the provided context. returns: quads - Quads that describe node layout relative to viewport. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID identifier of the backend node. WithNodeID identifier of the node. WithObjectID JavaScript object id of the node wrapper. GetContentQuadsParams : github.com/goccy/go-json.Marshaler *GetContentQuadsParams : github.com/goccy/go-json.Unmarshaler GetContentQuadsParams : github.com/mailru/easyjson.Marshaler *GetContentQuadsParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetContentQuadsParams : github.com/mailru/easyjson.Unmarshaler GetContentQuadsParams : encoding/json.Marshaler *GetContentQuadsParams : encoding/json.Unmarshaler func GetContentQuads() *GetContentQuadsParams func GetContentQuadsParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetContentQuadsParams func GetContentQuadsParams.WithNodeID(nodeID cdp.NodeID) *GetContentQuadsParams func GetContentQuadsParams.WithObjectID(objectID runtime.RemoteObjectID) *GetContentQuadsParams
GetContentQuadsReturns return values. // Quads that describe node layout relative to viewport. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetContentQuadsReturns : github.com/goccy/go-json.Marshaler *GetContentQuadsReturns : github.com/goccy/go-json.Unmarshaler GetContentQuadsReturns : github.com/mailru/easyjson.Marshaler *GetContentQuadsReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetContentQuadsReturns : github.com/mailru/easyjson.Unmarshaler GetContentQuadsReturns : encoding/json.Marshaler *GetContentQuadsReturns : encoding/json.Unmarshaler
GetDocumentParams returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target. // 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. // Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Do executes DOM.getDocument against the provided context. returns: root - Resulting node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface 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. WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). GetDocumentParams : github.com/goccy/go-json.Marshaler *GetDocumentParams : github.com/goccy/go-json.Unmarshaler GetDocumentParams : github.com/mailru/easyjson.Marshaler *GetDocumentParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetDocumentParams : github.com/mailru/easyjson.Unmarshaler GetDocumentParams : encoding/json.Marshaler *GetDocumentParams : encoding/json.Unmarshaler func GetDocument() *GetDocumentParams func GetDocumentParams.WithDepth(depth int64) *GetDocumentParams func GetDocumentParams.WithPierce(pierce bool) *GetDocumentParams
GetDocumentReturns return values. // Resulting node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetDocumentReturns : github.com/goccy/go-json.Marshaler *GetDocumentReturns : github.com/goccy/go-json.Unmarshaler GetDocumentReturns : github.com/mailru/easyjson.Marshaler *GetDocumentReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetDocumentReturns : github.com/mailru/easyjson.Unmarshaler GetDocumentReturns : encoding/json.Marshaler *GetDocumentReturns : encoding/json.Unmarshaler
GetFileInfoParams returns file information for the given File wrapper. // Identifier of the object to release. Do executes DOM.getFileInfo against the provided context. returns: path MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetFileInfoParams : github.com/goccy/go-json.Marshaler *GetFileInfoParams : github.com/goccy/go-json.Unmarshaler GetFileInfoParams : github.com/mailru/easyjson.Marshaler *GetFileInfoParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetFileInfoParams : github.com/mailru/easyjson.Unmarshaler GetFileInfoParams : encoding/json.Marshaler *GetFileInfoParams : encoding/json.Unmarshaler func GetFileInfo(objectID runtime.RemoteObjectID) *GetFileInfoParams
GetFileInfoReturns return values. Path string MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetFileInfoReturns : github.com/goccy/go-json.Marshaler *GetFileInfoReturns : github.com/goccy/go-json.Unmarshaler GetFileInfoReturns : github.com/mailru/easyjson.Marshaler *GetFileInfoReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetFileInfoReturns : github.com/mailru/easyjson.Unmarshaler GetFileInfoReturns : encoding/json.Marshaler *GetFileInfoReturns : encoding/json.Unmarshaler
GetFrameOwnerParams returns iframe node that owns iframe with the given domain. FrameID cdp.FrameID 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. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetFrameOwnerParams : github.com/goccy/go-json.Marshaler *GetFrameOwnerParams : github.com/goccy/go-json.Unmarshaler GetFrameOwnerParams : github.com/mailru/easyjson.Marshaler *GetFrameOwnerParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetFrameOwnerParams : github.com/mailru/easyjson.Unmarshaler GetFrameOwnerParams : encoding/json.Marshaler *GetFrameOwnerParams : encoding/json.Unmarshaler func GetFrameOwner(frameID cdp.FrameID) *GetFrameOwnerParams
GetFrameOwnerReturns return values. // Resulting node. // Id of the node at given coordinates, only when enabled and requested document. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetFrameOwnerReturns : github.com/goccy/go-json.Marshaler *GetFrameOwnerReturns : github.com/goccy/go-json.Unmarshaler GetFrameOwnerReturns : github.com/mailru/easyjson.Marshaler *GetFrameOwnerReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetFrameOwnerReturns : github.com/mailru/easyjson.Unmarshaler GetFrameOwnerReturns : encoding/json.Marshaler *GetFrameOwnerReturns : encoding/json.Unmarshaler
GetNodeForLocationParams returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not. // Whether to ignore pointer-events: none on elements and hit test them. // False to skip to the nearest non-UA shadow root ancestor (default: false). // X coordinate. // Y coordinate. 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. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithIgnorePointerEventsNone whether to ignore pointer-events: none on elements and hit test them. WithIncludeUserAgentShadowDOM false to skip to the nearest non-UA shadow root ancestor (default: false). GetNodeForLocationParams : github.com/goccy/go-json.Marshaler *GetNodeForLocationParams : github.com/goccy/go-json.Unmarshaler GetNodeForLocationParams : github.com/mailru/easyjson.Marshaler *GetNodeForLocationParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetNodeForLocationParams : github.com/mailru/easyjson.Unmarshaler GetNodeForLocationParams : encoding/json.Marshaler *GetNodeForLocationParams : encoding/json.Unmarshaler func GetNodeForLocation(x int64, y int64) *GetNodeForLocationParams func GetNodeForLocationParams.WithIgnorePointerEventsNone(ignorePointerEventsNone bool) *GetNodeForLocationParams func GetNodeForLocationParams.WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *GetNodeForLocationParams
GetNodeForLocationReturns return values. // Resulting node. // Frame this node belongs to. // Id of the node at given coordinates, only when enabled and requested document. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetNodeForLocationReturns : github.com/goccy/go-json.Marshaler *GetNodeForLocationReturns : github.com/goccy/go-json.Unmarshaler GetNodeForLocationReturns : github.com/mailru/easyjson.Marshaler *GetNodeForLocationReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetNodeForLocationReturns : github.com/mailru/easyjson.Unmarshaler GetNodeForLocationReturns : encoding/json.Marshaler *GetNodeForLocationReturns : encoding/json.Unmarshaler
GetNodesForSubtreeByStyleParams finds nodes with a given computed style in a subtree. // The style to filter nodes by (includes nodes if any of properties matches). // Node ID pointing to the root of a subtree. // Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false). Do executes DOM.getNodesForSubtreeByStyle against the provided context. returns: nodeIDs - Resulting nodes. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithPierce whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false). GetNodesForSubtreeByStyleParams : github.com/goccy/go-json.Marshaler *GetNodesForSubtreeByStyleParams : github.com/goccy/go-json.Unmarshaler GetNodesForSubtreeByStyleParams : github.com/mailru/easyjson.Marshaler *GetNodesForSubtreeByStyleParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetNodesForSubtreeByStyleParams : github.com/mailru/easyjson.Unmarshaler GetNodesForSubtreeByStyleParams : encoding/json.Marshaler *GetNodesForSubtreeByStyleParams : encoding/json.Unmarshaler func GetNodesForSubtreeByStyle(nodeID cdp.NodeID, computedStyles []*CSSComputedStyleProperty) *GetNodesForSubtreeByStyleParams func GetNodesForSubtreeByStyleParams.WithPierce(pierce bool) *GetNodesForSubtreeByStyleParams
GetNodesForSubtreeByStyleReturns return values. // Resulting nodes. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetNodesForSubtreeByStyleReturns : github.com/goccy/go-json.Marshaler *GetNodesForSubtreeByStyleReturns : github.com/goccy/go-json.Unmarshaler GetNodesForSubtreeByStyleReturns : github.com/mailru/easyjson.Marshaler *GetNodesForSubtreeByStyleReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetNodesForSubtreeByStyleReturns : github.com/mailru/easyjson.Unmarshaler GetNodesForSubtreeByStyleReturns : encoding/json.Marshaler *GetNodesForSubtreeByStyleReturns : encoding/json.Unmarshaler
GetNodeStackTracesParams gets stack traces associated with a Node. As of now, only provides stack trace for Node creation. // Id of the node to collect class names. Do executes DOM.getNodeStackTraces against the provided context. returns: creation - Creation stack trace, if available. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetNodeStackTracesParams : github.com/goccy/go-json.Marshaler *GetNodeStackTracesParams : github.com/goccy/go-json.Unmarshaler GetNodeStackTracesParams : github.com/mailru/easyjson.Marshaler *GetNodeStackTracesParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetNodeStackTracesParams : github.com/mailru/easyjson.Unmarshaler GetNodeStackTracesParams : encoding/json.Marshaler *GetNodeStackTracesParams : encoding/json.Unmarshaler func GetNodeStackTraces(nodeID cdp.NodeID) *GetNodeStackTracesParams
GetNodeStackTracesReturns return values. // Creation stack trace, if available. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetNodeStackTracesReturns : github.com/goccy/go-json.Marshaler *GetNodeStackTracesReturns : github.com/goccy/go-json.Unmarshaler GetNodeStackTracesReturns : github.com/mailru/easyjson.Marshaler *GetNodeStackTracesReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetNodeStackTracesReturns : github.com/mailru/easyjson.Unmarshaler GetNodeStackTracesReturns : encoding/json.Marshaler *GetNodeStackTracesReturns : encoding/json.Unmarshaler
GetOuterHTMLParams returns node's HTML markup. // Identifier of the backend node. // Identifier of the node. // JavaScript object id of the node wrapper. Do executes DOM.getOuterHTML against the provided context. returns: outerHTML - Outer HTML markup. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID identifier of the backend node. WithNodeID identifier of the node. WithObjectID JavaScript object id of the node wrapper. GetOuterHTMLParams : github.com/goccy/go-json.Marshaler *GetOuterHTMLParams : github.com/goccy/go-json.Unmarshaler GetOuterHTMLParams : github.com/mailru/easyjson.Marshaler *GetOuterHTMLParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetOuterHTMLParams : github.com/mailru/easyjson.Unmarshaler GetOuterHTMLParams : encoding/json.Marshaler *GetOuterHTMLParams : encoding/json.Unmarshaler func GetOuterHTML() *GetOuterHTMLParams func GetOuterHTMLParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetOuterHTMLParams func GetOuterHTMLParams.WithNodeID(nodeID cdp.NodeID) *GetOuterHTMLParams func GetOuterHTMLParams.WithObjectID(objectID runtime.RemoteObjectID) *GetOuterHTMLParams
GetOuterHTMLReturns return values. // Outer HTML markup. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetOuterHTMLReturns : github.com/goccy/go-json.Marshaler *GetOuterHTMLReturns : github.com/goccy/go-json.Unmarshaler GetOuterHTMLReturns : github.com/mailru/easyjson.Marshaler *GetOuterHTMLReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetOuterHTMLReturns : github.com/mailru/easyjson.Unmarshaler GetOuterHTMLReturns : encoding/json.Marshaler *GetOuterHTMLReturns : encoding/json.Unmarshaler
GetQueryingDescendantsForContainerParams returns the descendants of a container query container that have container queries against this container. // Id of the node to collect class names. Do executes DOM.getQueryingDescendantsForContainer against the provided context. returns: nodeIDs - Descendant nodes with container queries against the given container. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetQueryingDescendantsForContainerParams : github.com/goccy/go-json.Marshaler *GetQueryingDescendantsForContainerParams : github.com/goccy/go-json.Unmarshaler GetQueryingDescendantsForContainerParams : github.com/mailru/easyjson.Marshaler *GetQueryingDescendantsForContainerParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetQueryingDescendantsForContainerParams : github.com/mailru/easyjson.Unmarshaler GetQueryingDescendantsForContainerParams : encoding/json.Marshaler *GetQueryingDescendantsForContainerParams : encoding/json.Unmarshaler func GetQueryingDescendantsForContainer(nodeID cdp.NodeID) *GetQueryingDescendantsForContainerParams
GetQueryingDescendantsForContainerReturns return values. // Resulting nodes. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetQueryingDescendantsForContainerReturns : github.com/goccy/go-json.Marshaler *GetQueryingDescendantsForContainerReturns : github.com/goccy/go-json.Unmarshaler GetQueryingDescendantsForContainerReturns : github.com/mailru/easyjson.Marshaler *GetQueryingDescendantsForContainerReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetQueryingDescendantsForContainerReturns : github.com/mailru/easyjson.Unmarshaler GetQueryingDescendantsForContainerReturns : encoding/json.Marshaler *GetQueryingDescendantsForContainerReturns : encoding/json.Unmarshaler
GetRelayoutBoundaryParams returns the id of the nearest ancestor that is a relayout boundary. // Id of the node to collect class names. Do executes DOM.getRelayoutBoundary against the provided context. returns: nodeID - Relayout boundary node id for the given node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetRelayoutBoundaryParams : github.com/goccy/go-json.Marshaler *GetRelayoutBoundaryParams : github.com/goccy/go-json.Unmarshaler GetRelayoutBoundaryParams : github.com/mailru/easyjson.Marshaler *GetRelayoutBoundaryParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetRelayoutBoundaryParams : github.com/mailru/easyjson.Unmarshaler GetRelayoutBoundaryParams : encoding/json.Marshaler *GetRelayoutBoundaryParams : encoding/json.Unmarshaler func GetRelayoutBoundary(nodeID cdp.NodeID) *GetRelayoutBoundaryParams
GetRelayoutBoundaryReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetRelayoutBoundaryReturns : github.com/goccy/go-json.Marshaler *GetRelayoutBoundaryReturns : github.com/goccy/go-json.Unmarshaler GetRelayoutBoundaryReturns : github.com/mailru/easyjson.Marshaler *GetRelayoutBoundaryReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetRelayoutBoundaryReturns : github.com/mailru/easyjson.Unmarshaler GetRelayoutBoundaryReturns : encoding/json.Marshaler *GetRelayoutBoundaryReturns : encoding/json.Unmarshaler
GetSearchResultsParams returns search results from given fromIndex to given toIndex from the search with the given identifier. // Start index of the search result to be returned. // Unique search session identifier. // 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. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetSearchResultsParams : github.com/goccy/go-json.Marshaler *GetSearchResultsParams : github.com/goccy/go-json.Unmarshaler GetSearchResultsParams : github.com/mailru/easyjson.Marshaler *GetSearchResultsParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetSearchResultsParams : github.com/mailru/easyjson.Unmarshaler GetSearchResultsParams : encoding/json.Marshaler *GetSearchResultsParams : encoding/json.Unmarshaler func GetSearchResults(searchID string, fromIndex int64, toIndex int64) *GetSearchResultsParams
GetSearchResultsReturns return values. // Resulting nodes. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetSearchResultsReturns : github.com/goccy/go-json.Marshaler *GetSearchResultsReturns : github.com/goccy/go-json.Unmarshaler GetSearchResultsReturns : github.com/mailru/easyjson.Marshaler *GetSearchResultsReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetSearchResultsReturns : github.com/mailru/easyjson.Unmarshaler GetSearchResultsReturns : encoding/json.Marshaler *GetSearchResultsReturns : encoding/json.Unmarshaler
GetTopLayerElementsParams returns NodeIds of current top layer elements. Top layer is rendered closest to the user within a viewport, therefore its elements always appear on top of all other content. Do executes DOM.getTopLayerElements against the provided context. returns: nodeIDs - NodeIds of top layer elements MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetTopLayerElementsParams : github.com/goccy/go-json.Marshaler *GetTopLayerElementsParams : github.com/goccy/go-json.Unmarshaler GetTopLayerElementsParams : github.com/mailru/easyjson.Marshaler *GetTopLayerElementsParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetTopLayerElementsParams : github.com/mailru/easyjson.Unmarshaler GetTopLayerElementsParams : encoding/json.Marshaler *GetTopLayerElementsParams : encoding/json.Unmarshaler func GetTopLayerElements() *GetTopLayerElementsParams
GetTopLayerElementsReturns return values. // Resulting nodes. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetTopLayerElementsReturns : github.com/goccy/go-json.Marshaler *GetTopLayerElementsReturns : github.com/goccy/go-json.Unmarshaler GetTopLayerElementsReturns : github.com/mailru/easyjson.Marshaler *GetTopLayerElementsReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetTopLayerElementsReturns : github.com/mailru/easyjson.Unmarshaler GetTopLayerElementsReturns : encoding/json.Marshaler *GetTopLayerElementsReturns : encoding/json.Unmarshaler
LogicalAxes containerSelector logical axes. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-LogicalAxes MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the LogicalAxes as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. LogicalAxes : github.com/goccy/go-json.Marshaler *LogicalAxes : github.com/goccy/go-json.Unmarshaler LogicalAxes : github.com/mailru/easyjson.Marshaler *LogicalAxes : github.com/mailru/easyjson.MarshalerUnmarshaler *LogicalAxes : github.com/mailru/easyjson.Unmarshaler LogicalAxes : encoding/json.Marshaler *LogicalAxes : encoding/json.Unmarshaler LogicalAxes : expvar.Var LogicalAxes : fmt.Stringer func GetContainerForNodeParams.WithLogicalAxes(logicalAxes LogicalAxes) *GetContainerForNodeParams const LogicalAxesBlock const LogicalAxesBoth const LogicalAxesInline
MarkUndoableStateParams marks last undoable state. Do executes DOM.markUndoableState against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *MarkUndoableStateParams : github.com/chromedp/chromedp.Action *MarkUndoableStateParams : github.com/chromedp/chromedp.CallAction *MarkUndoableStateParams : github.com/chromedp/chromedp.EmulateAction *MarkUndoableStateParams : github.com/chromedp/chromedp.EvaluateAction *MarkUndoableStateParams : github.com/chromedp/chromedp.KeyAction *MarkUndoableStateParams : github.com/chromedp/chromedp.MouseAction *MarkUndoableStateParams : github.com/chromedp/chromedp.NavigateAction *MarkUndoableStateParams : github.com/chromedp/chromedp.PollAction *MarkUndoableStateParams : github.com/chromedp/chromedp.QueryAction MarkUndoableStateParams : github.com/goccy/go-json.Marshaler *MarkUndoableStateParams : github.com/goccy/go-json.Unmarshaler MarkUndoableStateParams : github.com/mailru/easyjson.Marshaler *MarkUndoableStateParams : github.com/mailru/easyjson.MarshalerUnmarshaler *MarkUndoableStateParams : github.com/mailru/easyjson.Unmarshaler MarkUndoableStateParams : encoding/json.Marshaler *MarkUndoableStateParams : encoding/json.Unmarshaler func MarkUndoableState() *MarkUndoableStateParams
MoveToParams moves node into the new container, places it before the given anchor. // Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId). // Id of the node to copy. // Id of the element to drop the copy into. Do executes DOM.moveTo against the provided context. returns: nodeID - New id of the moved node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithInsertBeforeNodeID drop node before this one (if absent, the moved node becomes the last child of targetNodeId). MoveToParams : github.com/goccy/go-json.Marshaler *MoveToParams : github.com/goccy/go-json.Unmarshaler MoveToParams : github.com/mailru/easyjson.Marshaler *MoveToParams : github.com/mailru/easyjson.MarshalerUnmarshaler *MoveToParams : github.com/mailru/easyjson.Unmarshaler MoveToParams : encoding/json.Marshaler *MoveToParams : encoding/json.Unmarshaler func MoveTo(nodeID cdp.NodeID, targetNodeID cdp.NodeID) *MoveToParams func MoveToParams.WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *MoveToParams
MoveToReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface MoveToReturns : github.com/goccy/go-json.Marshaler *MoveToReturns : github.com/goccy/go-json.Unmarshaler MoveToReturns : github.com/mailru/easyjson.Marshaler *MoveToReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *MoveToReturns : github.com/mailru/easyjson.Unmarshaler MoveToReturns : encoding/json.Marshaler *MoveToReturns : encoding/json.Unmarshaler
PerformSearchParams searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session. // True to search in user agent shadow DOM. // Plain text or query selector or XPath search query. Do executes DOM.performSearch against the provided context. returns: searchID - Unique search session identifier. resultCount - Number of search results. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithIncludeUserAgentShadowDOM true to search in user agent shadow DOM. PerformSearchParams : github.com/goccy/go-json.Marshaler *PerformSearchParams : github.com/goccy/go-json.Unmarshaler PerformSearchParams : github.com/mailru/easyjson.Marshaler *PerformSearchParams : github.com/mailru/easyjson.MarshalerUnmarshaler *PerformSearchParams : github.com/mailru/easyjson.Unmarshaler PerformSearchParams : encoding/json.Marshaler *PerformSearchParams : encoding/json.Unmarshaler func PerformSearch(query string) *PerformSearchParams func PerformSearchParams.WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *PerformSearchParams
PerformSearchReturns return values. // Number of search results. // Unique search session identifier. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface PerformSearchReturns : github.com/goccy/go-json.Marshaler *PerformSearchReturns : github.com/goccy/go-json.Unmarshaler PerformSearchReturns : github.com/mailru/easyjson.Marshaler *PerformSearchReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *PerformSearchReturns : github.com/mailru/easyjson.Unmarshaler PerformSearchReturns : encoding/json.Marshaler *PerformSearchReturns : encoding/json.Unmarshaler
PhysicalAxes containerSelector physical axes. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-PhysicalAxes MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the PhysicalAxes as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. PhysicalAxes : github.com/goccy/go-json.Marshaler *PhysicalAxes : github.com/goccy/go-json.Unmarshaler PhysicalAxes : github.com/mailru/easyjson.Marshaler *PhysicalAxes : github.com/mailru/easyjson.MarshalerUnmarshaler *PhysicalAxes : github.com/mailru/easyjson.Unmarshaler PhysicalAxes : encoding/json.Marshaler *PhysicalAxes : encoding/json.Unmarshaler PhysicalAxes : expvar.Var PhysicalAxes : fmt.Stringer func GetContainerForNodeParams.WithPhysicalAxes(physicalAxes PhysicalAxes) *GetContainerForNodeParams const PhysicalAxesBoth const PhysicalAxesHorizontal const PhysicalAxesVertical
PushNodeByPathToFrontendParams requests that the node is sent to the caller given its path. // FIXME, use XPath. // Path to node in the proprietary format. Do executes DOM.pushNodeByPathToFrontend against the provided context. returns: nodeID - Id of the node for given path. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface PushNodeByPathToFrontendParams : github.com/goccy/go-json.Marshaler *PushNodeByPathToFrontendParams : github.com/goccy/go-json.Unmarshaler PushNodeByPathToFrontendParams : github.com/mailru/easyjson.Marshaler *PushNodeByPathToFrontendParams : github.com/mailru/easyjson.MarshalerUnmarshaler *PushNodeByPathToFrontendParams : github.com/mailru/easyjson.Unmarshaler PushNodeByPathToFrontendParams : encoding/json.Marshaler *PushNodeByPathToFrontendParams : encoding/json.Unmarshaler func PushNodeByPathToFrontend(path string) *PushNodeByPathToFrontendParams
PushNodeByPathToFrontendReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface PushNodeByPathToFrontendReturns : github.com/goccy/go-json.Marshaler *PushNodeByPathToFrontendReturns : github.com/goccy/go-json.Unmarshaler PushNodeByPathToFrontendReturns : github.com/mailru/easyjson.Marshaler *PushNodeByPathToFrontendReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *PushNodeByPathToFrontendReturns : github.com/mailru/easyjson.Unmarshaler PushNodeByPathToFrontendReturns : encoding/json.Marshaler *PushNodeByPathToFrontendReturns : encoding/json.Unmarshaler
PushNodesByBackendIDsToFrontendParams requests that a batch of nodes is sent to the caller given their backend node ids. // The array of backend node ids. 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. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface PushNodesByBackendIDsToFrontendParams : github.com/goccy/go-json.Marshaler *PushNodesByBackendIDsToFrontendParams : github.com/goccy/go-json.Unmarshaler PushNodesByBackendIDsToFrontendParams : github.com/mailru/easyjson.Marshaler *PushNodesByBackendIDsToFrontendParams : github.com/mailru/easyjson.MarshalerUnmarshaler *PushNodesByBackendIDsToFrontendParams : github.com/mailru/easyjson.Unmarshaler PushNodesByBackendIDsToFrontendParams : encoding/json.Marshaler *PushNodesByBackendIDsToFrontendParams : encoding/json.Unmarshaler func PushNodesByBackendIDsToFrontend(backendNodeIDs []cdp.BackendNodeID) *PushNodesByBackendIDsToFrontendParams
PushNodesByBackendIDsToFrontendReturns return values. // Resulting nodes. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface PushNodesByBackendIDsToFrontendReturns : github.com/goccy/go-json.Marshaler *PushNodesByBackendIDsToFrontendReturns : github.com/goccy/go-json.Unmarshaler PushNodesByBackendIDsToFrontendReturns : github.com/mailru/easyjson.Marshaler *PushNodesByBackendIDsToFrontendReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *PushNodesByBackendIDsToFrontendReturns : github.com/mailru/easyjson.Unmarshaler PushNodesByBackendIDsToFrontendReturns : encoding/json.Marshaler *PushNodesByBackendIDsToFrontendReturns : encoding/json.Unmarshaler
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 func (*GetContentQuadsParams).Do(ctx context.Context) (quads []Quad, err error) func github.com/chromedp/cdproto/overlay.HighlightQuad(quad Quad) *overlay.HighlightQuadParams
QuerySelectorAllParams executes querySelectorAll on a given node. // Id of the node to query upon. // Selector string. Do executes DOM.querySelectorAll against the provided context. returns: nodeIDs - Query selector result. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface QuerySelectorAllParams : github.com/goccy/go-json.Marshaler *QuerySelectorAllParams : github.com/goccy/go-json.Unmarshaler QuerySelectorAllParams : github.com/mailru/easyjson.Marshaler *QuerySelectorAllParams : github.com/mailru/easyjson.MarshalerUnmarshaler *QuerySelectorAllParams : github.com/mailru/easyjson.Unmarshaler QuerySelectorAllParams : encoding/json.Marshaler *QuerySelectorAllParams : encoding/json.Unmarshaler func QuerySelectorAll(nodeID cdp.NodeID, selector string) *QuerySelectorAllParams
QuerySelectorAllReturns return values. // Resulting nodes. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface QuerySelectorAllReturns : github.com/goccy/go-json.Marshaler *QuerySelectorAllReturns : github.com/goccy/go-json.Unmarshaler QuerySelectorAllReturns : github.com/mailru/easyjson.Marshaler *QuerySelectorAllReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *QuerySelectorAllReturns : github.com/mailru/easyjson.Unmarshaler QuerySelectorAllReturns : encoding/json.Marshaler *QuerySelectorAllReturns : encoding/json.Unmarshaler
QuerySelectorParams executes querySelector on a given node. // Id of the node to query upon. // Selector string. Do executes DOM.querySelector against the provided context. returns: nodeID - Query selector result. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface QuerySelectorParams : github.com/goccy/go-json.Marshaler *QuerySelectorParams : github.com/goccy/go-json.Unmarshaler QuerySelectorParams : github.com/mailru/easyjson.Marshaler *QuerySelectorParams : github.com/mailru/easyjson.MarshalerUnmarshaler *QuerySelectorParams : github.com/mailru/easyjson.Unmarshaler QuerySelectorParams : encoding/json.Marshaler *QuerySelectorParams : encoding/json.Unmarshaler func QuerySelector(nodeID cdp.NodeID, selector string) *QuerySelectorParams
QuerySelectorReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface QuerySelectorReturns : github.com/goccy/go-json.Marshaler *QuerySelectorReturns : github.com/goccy/go-json.Unmarshaler QuerySelectorReturns : github.com/mailru/easyjson.Marshaler *QuerySelectorReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *QuerySelectorReturns : github.com/mailru/easyjson.Unmarshaler QuerySelectorReturns : encoding/json.Marshaler *QuerySelectorReturns : encoding/json.Unmarshaler
Rect Rectangle. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-Rect // Rectangle height // Rectangle width // X coordinate // Y coordinate MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface Rect : github.com/goccy/go-json.Marshaler *Rect : github.com/goccy/go-json.Unmarshaler Rect : github.com/mailru/easyjson.Marshaler *Rect : github.com/mailru/easyjson.MarshalerUnmarshaler *Rect : github.com/mailru/easyjson.Unmarshaler Rect : encoding/json.Marshaler *Rect : encoding/json.Unmarshaler func github.com/chromedp/cdproto/page.(*GetLayoutMetricsParams).Do(ctx context.Context) (layoutViewport *page.LayoutViewport, visualViewport *page.VisualViewport, contentSize *Rect, cssLayoutViewport *page.LayoutViewport, cssVisualViewport *page.VisualViewport, cssContentSize *Rect, err error) func github.com/chromedp/cdproto/page.(*GetLayoutMetricsParams).Do(ctx context.Context) (layoutViewport *page.LayoutViewport, visualViewport *page.VisualViewport, contentSize *Rect, cssLayoutViewport *page.LayoutViewport, cssVisualViewport *page.VisualViewport, cssContentSize *Rect, err error) func ScrollIntoViewIfNeededParams.WithRect(rect *Rect) *ScrollIntoViewIfNeededParams func github.com/chromedp/cdproto/layertree.ProfileSnapshotParams.WithClipRect(clipRect *Rect) *layertree.ProfileSnapshotParams
RedoParams re-does the last undone action. Do executes DOM.redo against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *RedoParams : github.com/chromedp/chromedp.Action *RedoParams : github.com/chromedp/chromedp.CallAction *RedoParams : github.com/chromedp/chromedp.EmulateAction *RedoParams : github.com/chromedp/chromedp.EvaluateAction *RedoParams : github.com/chromedp/chromedp.KeyAction *RedoParams : github.com/chromedp/chromedp.MouseAction *RedoParams : github.com/chromedp/chromedp.NavigateAction *RedoParams : github.com/chromedp/chromedp.PollAction *RedoParams : github.com/chromedp/chromedp.QueryAction RedoParams : github.com/goccy/go-json.Marshaler *RedoParams : github.com/goccy/go-json.Unmarshaler RedoParams : github.com/mailru/easyjson.Marshaler *RedoParams : github.com/mailru/easyjson.MarshalerUnmarshaler *RedoParams : github.com/mailru/easyjson.Unmarshaler RedoParams : encoding/json.Marshaler *RedoParams : encoding/json.Unmarshaler func Redo() *RedoParams
RemoveAttributeParams removes attribute with given name from an element with given id. // Name of the attribute to remove. // Id of the element to remove attribute from. Do executes DOM.removeAttribute against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *RemoveAttributeParams : github.com/chromedp/chromedp.Action *RemoveAttributeParams : github.com/chromedp/chromedp.CallAction *RemoveAttributeParams : github.com/chromedp/chromedp.EmulateAction *RemoveAttributeParams : github.com/chromedp/chromedp.EvaluateAction *RemoveAttributeParams : github.com/chromedp/chromedp.KeyAction *RemoveAttributeParams : github.com/chromedp/chromedp.MouseAction *RemoveAttributeParams : github.com/chromedp/chromedp.NavigateAction *RemoveAttributeParams : github.com/chromedp/chromedp.PollAction *RemoveAttributeParams : github.com/chromedp/chromedp.QueryAction RemoveAttributeParams : github.com/goccy/go-json.Marshaler *RemoveAttributeParams : github.com/goccy/go-json.Unmarshaler RemoveAttributeParams : github.com/mailru/easyjson.Marshaler *RemoveAttributeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *RemoveAttributeParams : github.com/mailru/easyjson.Unmarshaler RemoveAttributeParams : encoding/json.Marshaler *RemoveAttributeParams : encoding/json.Unmarshaler func RemoveAttribute(nodeID cdp.NodeID, name string) *RemoveAttributeParams
RemoveNodeParams removes node with given id. // Id of the node to collect class names. Do executes DOM.removeNode against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *RemoveNodeParams : github.com/chromedp/chromedp.Action *RemoveNodeParams : github.com/chromedp/chromedp.CallAction *RemoveNodeParams : github.com/chromedp/chromedp.EmulateAction *RemoveNodeParams : github.com/chromedp/chromedp.EvaluateAction *RemoveNodeParams : github.com/chromedp/chromedp.KeyAction *RemoveNodeParams : github.com/chromedp/chromedp.MouseAction *RemoveNodeParams : github.com/chromedp/chromedp.NavigateAction *RemoveNodeParams : github.com/chromedp/chromedp.PollAction *RemoveNodeParams : github.com/chromedp/chromedp.QueryAction RemoveNodeParams : github.com/goccy/go-json.Marshaler *RemoveNodeParams : github.com/goccy/go-json.Unmarshaler RemoveNodeParams : github.com/mailru/easyjson.Marshaler *RemoveNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *RemoveNodeParams : github.com/mailru/easyjson.Unmarshaler RemoveNodeParams : encoding/json.Marshaler *RemoveNodeParams : encoding/json.Unmarshaler func RemoveNode(nodeID cdp.NodeID) *RemoveNodeParams
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. // 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. // Id of the node to get children for. // Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false). Do executes DOM.requestChildNodes against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface 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. WithPierce whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false). *RequestChildNodesParams : github.com/chromedp/chromedp.Action *RequestChildNodesParams : github.com/chromedp/chromedp.CallAction *RequestChildNodesParams : github.com/chromedp/chromedp.EmulateAction *RequestChildNodesParams : github.com/chromedp/chromedp.EvaluateAction *RequestChildNodesParams : github.com/chromedp/chromedp.KeyAction *RequestChildNodesParams : github.com/chromedp/chromedp.MouseAction *RequestChildNodesParams : github.com/chromedp/chromedp.NavigateAction *RequestChildNodesParams : github.com/chromedp/chromedp.PollAction *RequestChildNodesParams : github.com/chromedp/chromedp.QueryAction RequestChildNodesParams : github.com/goccy/go-json.Marshaler *RequestChildNodesParams : github.com/goccy/go-json.Unmarshaler RequestChildNodesParams : github.com/mailru/easyjson.Marshaler *RequestChildNodesParams : github.com/mailru/easyjson.MarshalerUnmarshaler *RequestChildNodesParams : github.com/mailru/easyjson.Unmarshaler RequestChildNodesParams : encoding/json.Marshaler *RequestChildNodesParams : encoding/json.Unmarshaler func RequestChildNodes(nodeID cdp.NodeID) *RequestChildNodesParams func RequestChildNodesParams.WithDepth(depth int64) *RequestChildNodesParams func RequestChildNodesParams.WithPierce(pierce bool) *RequestChildNodesParams
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. // Identifier of the object to release. Do executes DOM.requestNode against the provided context. returns: nodeID - Node id for given object. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface RequestNodeParams : github.com/goccy/go-json.Marshaler *RequestNodeParams : github.com/goccy/go-json.Unmarshaler RequestNodeParams : github.com/mailru/easyjson.Marshaler *RequestNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *RequestNodeParams : github.com/mailru/easyjson.Unmarshaler RequestNodeParams : encoding/json.Marshaler *RequestNodeParams : encoding/json.Unmarshaler func RequestNode(objectID runtime.RemoteObjectID) *RequestNodeParams
RequestNodeReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface RequestNodeReturns : github.com/goccy/go-json.Marshaler *RequestNodeReturns : github.com/goccy/go-json.Unmarshaler RequestNodeReturns : github.com/mailru/easyjson.Marshaler *RequestNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *RequestNodeReturns : github.com/mailru/easyjson.Unmarshaler RequestNodeReturns : encoding/json.Marshaler *RequestNodeReturns : encoding/json.Unmarshaler
ResolveNodeParams resolves the JavaScript node object for a given NodeId or BackendNodeId. // Backend identifier of the node to resolve. // Execution context in which to resolve the node. // Id of the node to resolve. // Symbolic group name that can be used to release multiple objects. Do executes DOM.resolveNode against the provided context. returns: object - JavaScript object wrapper for given node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID backend identifier of the node to resolve. WithExecutionContextID execution context in which to resolve the node. WithNodeID ID of the node to resolve. WithObjectGroup symbolic group name that can be used to release multiple objects. ResolveNodeParams : github.com/goccy/go-json.Marshaler *ResolveNodeParams : github.com/goccy/go-json.Unmarshaler ResolveNodeParams : github.com/mailru/easyjson.Marshaler *ResolveNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ResolveNodeParams : github.com/mailru/easyjson.Unmarshaler ResolveNodeParams : encoding/json.Marshaler *ResolveNodeParams : encoding/json.Unmarshaler func ResolveNode() *ResolveNodeParams func ResolveNodeParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ResolveNodeParams func ResolveNodeParams.WithExecutionContextID(executionContextID runtime.ExecutionContextID) *ResolveNodeParams func ResolveNodeParams.WithNodeID(nodeID cdp.NodeID) *ResolveNodeParams func ResolveNodeParams.WithObjectGroup(objectGroup string) *ResolveNodeParams
ResolveNodeReturns return values. // JavaScript object wrapper for given node. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface ResolveNodeReturns : github.com/goccy/go-json.Marshaler *ResolveNodeReturns : github.com/goccy/go-json.Unmarshaler ResolveNodeReturns : github.com/mailru/easyjson.Marshaler *ResolveNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *ResolveNodeReturns : github.com/mailru/easyjson.Unmarshaler ResolveNodeReturns : encoding/json.Marshaler *ResolveNodeReturns : encoding/json.Unmarshaler
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. // Identifier of the backend node. // Identifier of the node. // JavaScript object id of the node wrapper. // 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. Do executes DOM.scrollIntoViewIfNeeded against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID identifier of the backend node. WithNodeID identifier of the node. WithObjectID JavaScript object id of the node wrapper. 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. *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.Action *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.CallAction *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.EmulateAction *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.EvaluateAction *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.KeyAction *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.MouseAction *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.NavigateAction *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.PollAction *ScrollIntoViewIfNeededParams : github.com/chromedp/chromedp.QueryAction ScrollIntoViewIfNeededParams : github.com/goccy/go-json.Marshaler *ScrollIntoViewIfNeededParams : github.com/goccy/go-json.Unmarshaler ScrollIntoViewIfNeededParams : github.com/mailru/easyjson.Marshaler *ScrollIntoViewIfNeededParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ScrollIntoViewIfNeededParams : github.com/mailru/easyjson.Unmarshaler ScrollIntoViewIfNeededParams : encoding/json.Marshaler *ScrollIntoViewIfNeededParams : encoding/json.Unmarshaler func ScrollIntoViewIfNeeded() *ScrollIntoViewIfNeededParams func ScrollIntoViewIfNeededParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ScrollIntoViewIfNeededParams func ScrollIntoViewIfNeededParams.WithNodeID(nodeID cdp.NodeID) *ScrollIntoViewIfNeededParams func ScrollIntoViewIfNeededParams.WithObjectID(objectID runtime.RemoteObjectID) *ScrollIntoViewIfNeededParams func ScrollIntoViewIfNeededParams.WithRect(rect *Rect) *ScrollIntoViewIfNeededParams
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. // Attribute name to replace with new attributes derived from text in case text parsed successfully. // Id of the element to set attributes for. // Text with a number of attributes. Will parse this text using HTML parser. Do executes DOM.setAttributesAsText against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithName attribute name to replace with new attributes derived from text in case text parsed successfully. *SetAttributesAsTextParams : github.com/chromedp/chromedp.Action *SetAttributesAsTextParams : github.com/chromedp/chromedp.CallAction *SetAttributesAsTextParams : github.com/chromedp/chromedp.EmulateAction *SetAttributesAsTextParams : github.com/chromedp/chromedp.EvaluateAction *SetAttributesAsTextParams : github.com/chromedp/chromedp.KeyAction *SetAttributesAsTextParams : github.com/chromedp/chromedp.MouseAction *SetAttributesAsTextParams : github.com/chromedp/chromedp.NavigateAction *SetAttributesAsTextParams : github.com/chromedp/chromedp.PollAction *SetAttributesAsTextParams : github.com/chromedp/chromedp.QueryAction SetAttributesAsTextParams : github.com/goccy/go-json.Marshaler *SetAttributesAsTextParams : github.com/goccy/go-json.Unmarshaler SetAttributesAsTextParams : github.com/mailru/easyjson.Marshaler *SetAttributesAsTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetAttributesAsTextParams : github.com/mailru/easyjson.Unmarshaler SetAttributesAsTextParams : encoding/json.Marshaler *SetAttributesAsTextParams : encoding/json.Unmarshaler func SetAttributesAsText(nodeID cdp.NodeID, text string) *SetAttributesAsTextParams func SetAttributesAsTextParams.WithName(name string) *SetAttributesAsTextParams
SetAttributeValueParams sets attribute for an element with given id. // Attribute name. // Id of the element to set attribute for. // Attribute value. Do executes DOM.setAttributeValue against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetAttributeValueParams : github.com/chromedp/chromedp.Action *SetAttributeValueParams : github.com/chromedp/chromedp.CallAction *SetAttributeValueParams : github.com/chromedp/chromedp.EmulateAction *SetAttributeValueParams : github.com/chromedp/chromedp.EvaluateAction *SetAttributeValueParams : github.com/chromedp/chromedp.KeyAction *SetAttributeValueParams : github.com/chromedp/chromedp.MouseAction *SetAttributeValueParams : github.com/chromedp/chromedp.NavigateAction *SetAttributeValueParams : github.com/chromedp/chromedp.PollAction *SetAttributeValueParams : github.com/chromedp/chromedp.QueryAction SetAttributeValueParams : github.com/goccy/go-json.Marshaler *SetAttributeValueParams : github.com/goccy/go-json.Unmarshaler SetAttributeValueParams : github.com/mailru/easyjson.Marshaler *SetAttributeValueParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetAttributeValueParams : github.com/mailru/easyjson.Unmarshaler SetAttributeValueParams : encoding/json.Marshaler *SetAttributeValueParams : encoding/json.Unmarshaler func SetAttributeValue(nodeID cdp.NodeID, name string, value string) *SetAttributeValueParams
SetFileInputFilesParams sets files for the given file input element. // Identifier of the backend node. // Array of file paths to set. // Identifier of the node. // JavaScript object id of the node wrapper. Do executes DOM.setFileInputFiles against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBackendNodeID identifier of the backend node. WithNodeID identifier of the node. WithObjectID JavaScript object id of the node wrapper. *SetFileInputFilesParams : github.com/chromedp/chromedp.Action *SetFileInputFilesParams : github.com/chromedp/chromedp.CallAction *SetFileInputFilesParams : github.com/chromedp/chromedp.EmulateAction *SetFileInputFilesParams : github.com/chromedp/chromedp.EvaluateAction *SetFileInputFilesParams : github.com/chromedp/chromedp.KeyAction *SetFileInputFilesParams : github.com/chromedp/chromedp.MouseAction *SetFileInputFilesParams : github.com/chromedp/chromedp.NavigateAction *SetFileInputFilesParams : github.com/chromedp/chromedp.PollAction *SetFileInputFilesParams : github.com/chromedp/chromedp.QueryAction SetFileInputFilesParams : github.com/goccy/go-json.Marshaler *SetFileInputFilesParams : github.com/goccy/go-json.Unmarshaler SetFileInputFilesParams : github.com/mailru/easyjson.Marshaler *SetFileInputFilesParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetFileInputFilesParams : github.com/mailru/easyjson.Unmarshaler SetFileInputFilesParams : encoding/json.Marshaler *SetFileInputFilesParams : encoding/json.Unmarshaler func SetFileInputFiles(files []string) *SetFileInputFilesParams func SetFileInputFilesParams.WithBackendNodeID(backendNodeID cdp.BackendNodeID) *SetFileInputFilesParams func SetFileInputFilesParams.WithNodeID(nodeID cdp.NodeID) *SetFileInputFilesParams func SetFileInputFilesParams.WithObjectID(objectID runtime.RemoteObjectID) *SetFileInputFilesParams
SetInspectedNodeParams enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). // Id of the node to collect class names. Do executes DOM.setInspectedNode against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetInspectedNodeParams : github.com/chromedp/chromedp.Action *SetInspectedNodeParams : github.com/chromedp/chromedp.CallAction *SetInspectedNodeParams : github.com/chromedp/chromedp.EmulateAction *SetInspectedNodeParams : github.com/chromedp/chromedp.EvaluateAction *SetInspectedNodeParams : github.com/chromedp/chromedp.KeyAction *SetInspectedNodeParams : github.com/chromedp/chromedp.MouseAction *SetInspectedNodeParams : github.com/chromedp/chromedp.NavigateAction *SetInspectedNodeParams : github.com/chromedp/chromedp.PollAction *SetInspectedNodeParams : github.com/chromedp/chromedp.QueryAction SetInspectedNodeParams : github.com/goccy/go-json.Marshaler *SetInspectedNodeParams : github.com/goccy/go-json.Unmarshaler SetInspectedNodeParams : github.com/mailru/easyjson.Marshaler *SetInspectedNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetInspectedNodeParams : github.com/mailru/easyjson.Unmarshaler SetInspectedNodeParams : encoding/json.Marshaler *SetInspectedNodeParams : encoding/json.Unmarshaler func SetInspectedNode(nodeID cdp.NodeID) *SetInspectedNodeParams
SetNodeNameParams sets node name for a node with given id. // Name of the attribute to remove. // Id of the element to remove attribute from. Do executes DOM.setNodeName against the provided context. returns: nodeID - New node's id. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface SetNodeNameParams : github.com/goccy/go-json.Marshaler *SetNodeNameParams : github.com/goccy/go-json.Unmarshaler SetNodeNameParams : github.com/mailru/easyjson.Marshaler *SetNodeNameParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetNodeNameParams : github.com/mailru/easyjson.Unmarshaler SetNodeNameParams : encoding/json.Marshaler *SetNodeNameParams : encoding/json.Unmarshaler func SetNodeName(nodeID cdp.NodeID, name string) *SetNodeNameParams
SetNodeNameReturns return values. // Id of the node clone. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface SetNodeNameReturns : github.com/goccy/go-json.Marshaler *SetNodeNameReturns : github.com/goccy/go-json.Unmarshaler SetNodeNameReturns : github.com/mailru/easyjson.Marshaler *SetNodeNameReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *SetNodeNameReturns : github.com/mailru/easyjson.Unmarshaler SetNodeNameReturns : encoding/json.Marshaler *SetNodeNameReturns : encoding/json.Unmarshaler
SetNodeStackTracesEnabledParams sets if stack traces should be captured for Nodes. See Node.getNodeStackTraces. Default is disabled. // Enable or disable. Do executes DOM.setNodeStackTracesEnabled against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.Action *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.CallAction *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.EmulateAction *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.EvaluateAction *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.KeyAction *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.MouseAction *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.NavigateAction *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.PollAction *SetNodeStackTracesEnabledParams : github.com/chromedp/chromedp.QueryAction SetNodeStackTracesEnabledParams : github.com/goccy/go-json.Marshaler *SetNodeStackTracesEnabledParams : github.com/goccy/go-json.Unmarshaler SetNodeStackTracesEnabledParams : github.com/mailru/easyjson.Marshaler *SetNodeStackTracesEnabledParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetNodeStackTracesEnabledParams : github.com/mailru/easyjson.Unmarshaler SetNodeStackTracesEnabledParams : encoding/json.Marshaler *SetNodeStackTracesEnabledParams : encoding/json.Unmarshaler func SetNodeStackTracesEnabled(enable bool) *SetNodeStackTracesEnabledParams
SetNodeValueParams sets node value for a node with given id. // Id of the node to set value for. // New node's value. Do executes DOM.setNodeValue against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetNodeValueParams : github.com/chromedp/chromedp.Action *SetNodeValueParams : github.com/chromedp/chromedp.CallAction *SetNodeValueParams : github.com/chromedp/chromedp.EmulateAction *SetNodeValueParams : github.com/chromedp/chromedp.EvaluateAction *SetNodeValueParams : github.com/chromedp/chromedp.KeyAction *SetNodeValueParams : github.com/chromedp/chromedp.MouseAction *SetNodeValueParams : github.com/chromedp/chromedp.NavigateAction *SetNodeValueParams : github.com/chromedp/chromedp.PollAction *SetNodeValueParams : github.com/chromedp/chromedp.QueryAction SetNodeValueParams : github.com/goccy/go-json.Marshaler *SetNodeValueParams : github.com/goccy/go-json.Unmarshaler SetNodeValueParams : github.com/mailru/easyjson.Marshaler *SetNodeValueParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetNodeValueParams : github.com/mailru/easyjson.Unmarshaler SetNodeValueParams : encoding/json.Marshaler *SetNodeValueParams : encoding/json.Unmarshaler func SetNodeValue(nodeID cdp.NodeID, value string) *SetNodeValueParams
SetOuterHTMLParams sets node HTML markup, returns new node id. // Id of the node to set markup for. // Outer HTML markup to set. Do executes DOM.setOuterHTML against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetOuterHTMLParams : github.com/chromedp/chromedp.Action *SetOuterHTMLParams : github.com/chromedp/chromedp.CallAction *SetOuterHTMLParams : github.com/chromedp/chromedp.EmulateAction *SetOuterHTMLParams : github.com/chromedp/chromedp.EvaluateAction *SetOuterHTMLParams : github.com/chromedp/chromedp.KeyAction *SetOuterHTMLParams : github.com/chromedp/chromedp.MouseAction *SetOuterHTMLParams : github.com/chromedp/chromedp.NavigateAction *SetOuterHTMLParams : github.com/chromedp/chromedp.PollAction *SetOuterHTMLParams : github.com/chromedp/chromedp.QueryAction SetOuterHTMLParams : github.com/goccy/go-json.Marshaler *SetOuterHTMLParams : github.com/goccy/go-json.Unmarshaler SetOuterHTMLParams : github.com/mailru/easyjson.Marshaler *SetOuterHTMLParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetOuterHTMLParams : github.com/mailru/easyjson.Unmarshaler SetOuterHTMLParams : encoding/json.Marshaler *SetOuterHTMLParams : encoding/json.Unmarshaler func SetOuterHTML(nodeID cdp.NodeID, outerHTML string) *SetOuterHTMLParams
ShapeOutsideInfo CSS Shape Outside details. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-ShapeOutsideInfo // Shape bounds // Margin shape bounds // Shape coordinate details MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface ShapeOutsideInfo : github.com/goccy/go-json.Marshaler *ShapeOutsideInfo : github.com/goccy/go-json.Unmarshaler ShapeOutsideInfo : github.com/mailru/easyjson.Marshaler *ShapeOutsideInfo : github.com/mailru/easyjson.MarshalerUnmarshaler *ShapeOutsideInfo : github.com/mailru/easyjson.Unmarshaler ShapeOutsideInfo : encoding/json.Marshaler *ShapeOutsideInfo : encoding/json.Unmarshaler
UndoParams undoes the last performed action. Do executes DOM.undo against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *UndoParams : github.com/chromedp/chromedp.Action *UndoParams : github.com/chromedp/chromedp.CallAction *UndoParams : github.com/chromedp/chromedp.EmulateAction *UndoParams : github.com/chromedp/chromedp.EvaluateAction *UndoParams : github.com/chromedp/chromedp.KeyAction *UndoParams : github.com/chromedp/chromedp.MouseAction *UndoParams : github.com/chromedp/chromedp.NavigateAction *UndoParams : github.com/chromedp/chromedp.PollAction *UndoParams : github.com/chromedp/chromedp.QueryAction UndoParams : github.com/goccy/go-json.Marshaler *UndoParams : github.com/goccy/go-json.Unmarshaler UndoParams : github.com/mailru/easyjson.Marshaler *UndoParams : github.com/mailru/easyjson.MarshalerUnmarshaler *UndoParams : github.com/mailru/easyjson.Unmarshaler UndoParams : encoding/json.Marshaler *UndoParams : encoding/json.Unmarshaler func Undo() *UndoParams
Package-Level Functions (total 45)
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.
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.
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:
Disable disables DOM agent for the given page. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-disable
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.
Enable enables DOM agent for the given page. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-enable parameters:
Focus focuses the given element. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-focus parameters:
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.
GetBoxModel returns boxes for the given node. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getBoxModel parameters:
GetContainerForNode returns the query container of the given node based on container query conditions: containerName, physical, and logical axes. If no axes are provided, the style container is returned, which is the direct parent or the closest element with a matching container-name. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getContainerForNode parameters: nodeID
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:
GetDocument returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getDocument parameters:
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.
GetFrameOwner returns iframe node that owns iframe with the given domain. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getFrameOwner parameters: frameID
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.
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).
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.
GetQueryingDescendantsForContainer returns the descendants of a container query container that have container queries against this container. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getQueryingDescendantsForContainer parameters: nodeID - Id of the container node to find querying descendants from.
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.
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.
GetTopLayerElements returns NodeIds of current top layer elements. Top layer is rendered closest to the user within a viewport, therefore its elements always appear on top of all other content. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getTopLayerElements
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
ResolveNode resolves the JavaScript node object for a given NodeId or BackendNodeId. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-resolveNode parameters:
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:
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.
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.
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.
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.
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.
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.
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.
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.
Undo undoes the last performed action. See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-undo
Package-Level Constants (total 53)
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
EnableIncludeWhitespace values.
EnableIncludeWhitespace values.
LogicalAxes values.
LogicalAxes values.
LogicalAxes values.
PhysicalAxes values.
PhysicalAxes values.
PhysicalAxes values.