cdproto: github.com/chromedp/cdproto/dom Index | Files

package dom

import "github.com/chromedp/cdproto/dom"

Package dom provides the Chrome DevTools Protocol commands, types, and events for the DOM domain.

This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.

Note that iframe owner elements will return corresponding document elements as their child nodes.

Generated by the cdproto-gen command.

Index

Package Files

dom.go easyjson.go events.go types.go

Constants

const (
    CommandCollectClassNamesFromSubtree    = "DOM.collectClassNamesFromSubtree"
    CommandCopyTo                          = "DOM.copyTo"
    CommandDescribeNode                    = "DOM.describeNode"
    CommandScrollIntoViewIfNeeded          = "DOM.scrollIntoViewIfNeeded"
    CommandDisable                         = "DOM.disable"
    CommandDiscardSearchResults            = "DOM.discardSearchResults"
    CommandEnable                          = "DOM.enable"
    CommandFocus                           = "DOM.focus"
    CommandGetAttributes                   = "DOM.getAttributes"
    CommandGetBoxModel                     = "DOM.getBoxModel"
    CommandGetContentQuads                 = "DOM.getContentQuads"
    CommandGetDocument                     = "DOM.getDocument"
    CommandGetNodesForSubtreeByStyle       = "DOM.getNodesForSubtreeByStyle"
    CommandGetNodeForLocation              = "DOM.getNodeForLocation"
    CommandGetOuterHTML                    = "DOM.getOuterHTML"
    CommandGetRelayoutBoundary             = "DOM.getRelayoutBoundary"
    CommandGetSearchResults                = "DOM.getSearchResults"
    CommandMarkUndoableState               = "DOM.markUndoableState"
    CommandMoveTo                          = "DOM.moveTo"
    CommandPerformSearch                   = "DOM.performSearch"
    CommandPushNodeByPathToFrontend        = "DOM.pushNodeByPathToFrontend"
    CommandPushNodesByBackendIdsToFrontend = "DOM.pushNodesByBackendIdsToFrontend"
    CommandQuerySelector                   = "DOM.querySelector"
    CommandQuerySelectorAll                = "DOM.querySelectorAll"
    CommandRedo                            = "DOM.redo"
    CommandRemoveAttribute                 = "DOM.removeAttribute"
    CommandRemoveNode                      = "DOM.removeNode"
    CommandRequestChildNodes               = "DOM.requestChildNodes"
    CommandRequestNode                     = "DOM.requestNode"
    CommandResolveNode                     = "DOM.resolveNode"
    CommandSetAttributeValue               = "DOM.setAttributeValue"
    CommandSetAttributesAsText             = "DOM.setAttributesAsText"
    CommandSetFileInputFiles               = "DOM.setFileInputFiles"
    CommandSetNodeStackTracesEnabled       = "DOM.setNodeStackTracesEnabled"
    CommandGetNodeStackTraces              = "DOM.getNodeStackTraces"
    CommandGetFileInfo                     = "DOM.getFileInfo"
    CommandSetInspectedNode                = "DOM.setInspectedNode"
    CommandSetNodeName                     = "DOM.setNodeName"
    CommandSetNodeValue                    = "DOM.setNodeValue"
    CommandSetOuterHTML                    = "DOM.setOuterHTML"
    CommandUndo                            = "DOM.undo"
    CommandGetFrameOwner                   = "DOM.getFrameOwner"
)

Command names.

type BoxModel Uses

type BoxModel struct {
    Content      Quad              `json:"content"`                // Content box
    Padding      Quad              `json:"padding"`                // Padding box
    Border       Quad              `json:"border"`                 // Border box
    Margin       Quad              `json:"margin"`                 // Margin box
    Width        int64             `json:"width"`                  // Node width
    Height       int64             `json:"height"`                 // Node height
    ShapeOutside *ShapeOutsideInfo `json:"shapeOutside,omitempty"` // Shape outside coordinates
}

BoxModel box model.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-BoxModel

func (BoxModel) MarshalEasyJSON Uses

func (v BoxModel) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BoxModel) MarshalJSON Uses

func (v BoxModel) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BoxModel) UnmarshalEasyJSON Uses

func (v *BoxModel) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BoxModel) UnmarshalJSON Uses

func (v *BoxModel) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CSSComputedStyleProperty Uses

type CSSComputedStyleProperty struct {
    Name  string `json:"name"`  // Computed style property name.
    Value string `json:"value"` // Computed style property value.
}

CSSComputedStyleProperty [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-CSSComputedStyleProperty

func (CSSComputedStyleProperty) MarshalEasyJSON Uses

func (v CSSComputedStyleProperty) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CSSComputedStyleProperty) MarshalJSON Uses

func (v CSSComputedStyleProperty) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CSSComputedStyleProperty) UnmarshalEasyJSON Uses

func (v *CSSComputedStyleProperty) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CSSComputedStyleProperty) UnmarshalJSON Uses

func (v *CSSComputedStyleProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CollectClassNamesFromSubtreeParams Uses

type CollectClassNamesFromSubtreeParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node to collect class names.
}

CollectClassNamesFromSubtreeParams collects class names for the node with given id and all of it's child nodes.

func CollectClassNamesFromSubtree Uses

func CollectClassNamesFromSubtree(nodeID cdp.NodeID) *CollectClassNamesFromSubtreeParams

CollectClassNamesFromSubtree collects class names for the node with given id and all of it's child nodes.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-collectClassNamesFromSubtree

parameters:

nodeID - Id of the node to collect class names.

func (*CollectClassNamesFromSubtreeParams) Do Uses

func (p *CollectClassNamesFromSubtreeParams) Do(ctx context.Context) (classNames []string, err error)

Do executes DOM.collectClassNamesFromSubtree against the provided context.

returns:

classNames - Class name list.

func (CollectClassNamesFromSubtreeParams) MarshalEasyJSON Uses

func (v CollectClassNamesFromSubtreeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CollectClassNamesFromSubtreeParams) MarshalJSON Uses

func (v CollectClassNamesFromSubtreeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON Uses

func (v *CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CollectClassNamesFromSubtreeParams) UnmarshalJSON Uses

func (v *CollectClassNamesFromSubtreeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CollectClassNamesFromSubtreeReturns Uses

type CollectClassNamesFromSubtreeReturns struct {
    ClassNames []string `json:"classNames,omitempty"` // Class name list.
}

CollectClassNamesFromSubtreeReturns return values.

func (CollectClassNamesFromSubtreeReturns) MarshalEasyJSON Uses

func (v CollectClassNamesFromSubtreeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CollectClassNamesFromSubtreeReturns) MarshalJSON Uses

func (v CollectClassNamesFromSubtreeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON Uses

func (v *CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CollectClassNamesFromSubtreeReturns) UnmarshalJSON Uses

func (v *CollectClassNamesFromSubtreeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CopyToParams Uses

type CopyToParams struct {
    NodeID             cdp.NodeID `json:"nodeId"`                       // Id of the node to copy.
    TargetNodeID       cdp.NodeID `json:"targetNodeId"`                 // Id of the element to drop the copy into.
    InsertBeforeNodeID cdp.NodeID `json:"insertBeforeNodeId,omitempty"` // Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId).
}

CopyToParams creates a deep copy of the specified node and places it into the target container before the given anchor.

func CopyTo Uses

func CopyTo(nodeID cdp.NodeID, targetNodeID cdp.NodeID) *CopyToParams

CopyTo creates a deep copy of the specified node and places it into the target container before the given anchor.

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.

func (*CopyToParams) Do Uses

func (p *CopyToParams) Do(ctx context.Context) (nodeID cdp.NodeID, err error)

Do executes DOM.copyTo against the provided context.

returns:

nodeID - Id of the node clone.

func (CopyToParams) MarshalEasyJSON Uses

func (v CopyToParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CopyToParams) MarshalJSON Uses

func (v CopyToParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CopyToParams) UnmarshalEasyJSON Uses

func (v *CopyToParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CopyToParams) UnmarshalJSON Uses

func (v *CopyToParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (CopyToParams) WithInsertBeforeNodeID Uses

func (p CopyToParams) WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *CopyToParams

WithInsertBeforeNodeID drop the copy before this node (if absent, the copy becomes the last child of targetNodeId).

type CopyToReturns Uses

type CopyToReturns struct {
    NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node clone.
}

CopyToReturns return values.

func (CopyToReturns) MarshalEasyJSON Uses

func (v CopyToReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CopyToReturns) MarshalJSON Uses

func (v CopyToReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CopyToReturns) UnmarshalEasyJSON Uses

func (v *CopyToReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CopyToReturns) UnmarshalJSON Uses

func (v *CopyToReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DescribeNodeParams Uses

type DescribeNodeParams struct {
    NodeID        cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node.
    BackendNodeID cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node.
    ObjectID      runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
    Depth         int64                  `json:"depth,omitempty"`         // The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    Pierce        bool                   `json:"pierce,omitempty"`        // Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
}

DescribeNodeParams describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.

func DescribeNode Uses

func DescribeNode() *DescribeNodeParams

DescribeNode describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-describeNode

parameters:

func (*DescribeNodeParams) Do Uses

func (p *DescribeNodeParams) Do(ctx context.Context) (node *cdp.Node, err error)

Do executes DOM.describeNode against the provided context.

returns:

node - Node description.

func (DescribeNodeParams) MarshalEasyJSON Uses

func (v DescribeNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DescribeNodeParams) MarshalJSON Uses

func (v DescribeNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DescribeNodeParams) UnmarshalEasyJSON Uses

func (v *DescribeNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DescribeNodeParams) UnmarshalJSON Uses

func (v *DescribeNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (DescribeNodeParams) WithBackendNodeID Uses

func (p DescribeNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *DescribeNodeParams

WithBackendNodeID identifier of the backend node.

func (DescribeNodeParams) WithDepth Uses

func (p DescribeNodeParams) WithDepth(depth int64) *DescribeNodeParams

WithDepth the maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.

func (DescribeNodeParams) WithNodeID Uses

func (p DescribeNodeParams) WithNodeID(nodeID cdp.NodeID) *DescribeNodeParams

WithNodeID identifier of the node.

func (DescribeNodeParams) WithObjectID Uses

func (p DescribeNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *DescribeNodeParams

WithObjectID JavaScript object id of the node wrapper.

func (DescribeNodeParams) WithPierce Uses

func (p DescribeNodeParams) WithPierce(pierce bool) *DescribeNodeParams

WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).

type DescribeNodeReturns Uses

type DescribeNodeReturns struct {
    Node *cdp.Node `json:"node,omitempty"` // Node description.
}

DescribeNodeReturns return values.

func (DescribeNodeReturns) MarshalEasyJSON Uses

func (v DescribeNodeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DescribeNodeReturns) MarshalJSON Uses

func (v DescribeNodeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DescribeNodeReturns) UnmarshalEasyJSON Uses

func (v *DescribeNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DescribeNodeReturns) UnmarshalJSON Uses

func (v *DescribeNodeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables DOM agent for the given page.

func Disable Uses

func Disable() *DisableParams

Disable disables DOM agent for the given page.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes DOM.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DiscardSearchResultsParams Uses

type DiscardSearchResultsParams struct {
    SearchID string `json:"searchId"` // Unique search session identifier.
}

DiscardSearchResultsParams discards search results from the session with the given id. getSearchResults should no longer be called for that search.

func DiscardSearchResults Uses

func DiscardSearchResults(searchID string) *DiscardSearchResultsParams

DiscardSearchResults discards search results from the session with the given id. getSearchResults should no longer be called for that search.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-discardSearchResults

parameters:

searchID - Unique search session identifier.

func (*DiscardSearchResultsParams) Do Uses

func (p *DiscardSearchResultsParams) Do(ctx context.Context) (err error)

Do executes DOM.discardSearchResults against the provided context.

func (DiscardSearchResultsParams) MarshalEasyJSON Uses

func (v DiscardSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DiscardSearchResultsParams) MarshalJSON Uses

func (v DiscardSearchResultsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DiscardSearchResultsParams) UnmarshalEasyJSON Uses

func (v *DiscardSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DiscardSearchResultsParams) UnmarshalJSON Uses

func (v *DiscardSearchResultsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables DOM agent for the given page.

func Enable Uses

func Enable() *EnableParams

Enable enables DOM agent for the given page.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes DOM.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAttributeModified Uses

type EventAttributeModified struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed.
    Name   string     `json:"name"`   // Attribute name.
    Value  string     `json:"value"`  // Attribute value.
}

EventAttributeModified fired when Element's attribute is modified.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeModified

func (EventAttributeModified) MarshalEasyJSON Uses

func (v EventAttributeModified) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAttributeModified) MarshalJSON Uses

func (v EventAttributeModified) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAttributeModified) UnmarshalEasyJSON Uses

func (v *EventAttributeModified) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAttributeModified) UnmarshalJSON Uses

func (v *EventAttributeModified) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAttributeRemoved Uses

type EventAttributeRemoved struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed.
    Name   string     `json:"name"`   // A ttribute name.
}

EventAttributeRemoved fired when Element's attribute is removed.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeRemoved

func (EventAttributeRemoved) MarshalEasyJSON Uses

func (v EventAttributeRemoved) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAttributeRemoved) MarshalJSON Uses

func (v EventAttributeRemoved) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAttributeRemoved) UnmarshalEasyJSON Uses

func (v *EventAttributeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAttributeRemoved) UnmarshalJSON Uses

func (v *EventAttributeRemoved) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventCharacterDataModified Uses

type EventCharacterDataModified struct {
    NodeID        cdp.NodeID `json:"nodeId"`        // Id of the node that has changed.
    CharacterData string     `json:"characterData"` // New text value.
}

EventCharacterDataModified mirrors DOMCharacterDataModified event.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-characterDataModified

func (EventCharacterDataModified) MarshalEasyJSON Uses

func (v EventCharacterDataModified) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventCharacterDataModified) MarshalJSON Uses

func (v EventCharacterDataModified) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventCharacterDataModified) UnmarshalEasyJSON Uses

func (v *EventCharacterDataModified) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventCharacterDataModified) UnmarshalJSON Uses

func (v *EventCharacterDataModified) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventChildNodeCountUpdated Uses

type EventChildNodeCountUpdated struct {
    NodeID         cdp.NodeID `json:"nodeId"`         // Id of the node that has changed.
    ChildNodeCount int64      `json:"childNodeCount"` // New node count.
}

EventChildNodeCountUpdated fired when Container's child node count has changed.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeCountUpdated

func (EventChildNodeCountUpdated) MarshalEasyJSON Uses

func (v EventChildNodeCountUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventChildNodeCountUpdated) MarshalJSON Uses

func (v EventChildNodeCountUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventChildNodeCountUpdated) UnmarshalEasyJSON Uses

func (v *EventChildNodeCountUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventChildNodeCountUpdated) UnmarshalJSON Uses

func (v *EventChildNodeCountUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventChildNodeInserted Uses

type EventChildNodeInserted struct {
    ParentNodeID   cdp.NodeID `json:"parentNodeId"`   // Id of the node that has changed.
    PreviousNodeID cdp.NodeID `json:"previousNodeId"` // If of the previous siblint.
    Node           *cdp.Node  `json:"node"`           // Inserted node data.
}

EventChildNodeInserted mirrors DOMNodeInserted event.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeInserted

func (EventChildNodeInserted) MarshalEasyJSON Uses

func (v EventChildNodeInserted) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventChildNodeInserted) MarshalJSON Uses

func (v EventChildNodeInserted) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventChildNodeInserted) UnmarshalEasyJSON Uses

func (v *EventChildNodeInserted) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventChildNodeInserted) UnmarshalJSON Uses

func (v *EventChildNodeInserted) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventChildNodeRemoved Uses

type EventChildNodeRemoved struct {
    ParentNodeID cdp.NodeID `json:"parentNodeId"` // Parent id.
    NodeID       cdp.NodeID `json:"nodeId"`       // Id of the node that has been removed.
}

EventChildNodeRemoved mirrors DOMNodeRemoved event.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeRemoved

func (EventChildNodeRemoved) MarshalEasyJSON Uses

func (v EventChildNodeRemoved) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventChildNodeRemoved) MarshalJSON Uses

func (v EventChildNodeRemoved) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventChildNodeRemoved) UnmarshalEasyJSON Uses

func (v *EventChildNodeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventChildNodeRemoved) UnmarshalJSON Uses

func (v *EventChildNodeRemoved) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDistributedNodesUpdated Uses

type EventDistributedNodesUpdated struct {
    InsertionPointID cdp.NodeID         `json:"insertionPointId"` // Insertion point where distributed nodes were updated.
    DistributedNodes []*cdp.BackendNode `json:"distributedNodes"` // Distributed nodes for given insertion point.
}

EventDistributedNodesUpdated called when distribution is changed.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-distributedNodesUpdated

func (EventDistributedNodesUpdated) MarshalEasyJSON Uses

func (v EventDistributedNodesUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDistributedNodesUpdated) MarshalJSON Uses

func (v EventDistributedNodesUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDistributedNodesUpdated) UnmarshalEasyJSON Uses

func (v *EventDistributedNodesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDistributedNodesUpdated) UnmarshalJSON Uses

func (v *EventDistributedNodesUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDocumentUpdated Uses

type EventDocumentUpdated struct{}

EventDocumentUpdated fired when Document has been totally updated. Node ids are no longer valid.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-documentUpdated

func (EventDocumentUpdated) MarshalEasyJSON Uses

func (v EventDocumentUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDocumentUpdated) MarshalJSON Uses

func (v EventDocumentUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDocumentUpdated) UnmarshalEasyJSON Uses

func (v *EventDocumentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDocumentUpdated) UnmarshalJSON Uses

func (v *EventDocumentUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventInlineStyleInvalidated Uses

type EventInlineStyleInvalidated struct {
    NodeIds []cdp.NodeID `json:"nodeIds"` // Ids of the nodes for which the inline styles have been invalidated.
}

EventInlineStyleInvalidated fired when Element's inline style is modified via a CSS property modification.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-inlineStyleInvalidated

func (EventInlineStyleInvalidated) MarshalEasyJSON Uses

func (v EventInlineStyleInvalidated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInlineStyleInvalidated) MarshalJSON Uses

func (v EventInlineStyleInvalidated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventInlineStyleInvalidated) UnmarshalEasyJSON Uses

func (v *EventInlineStyleInvalidated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInlineStyleInvalidated) UnmarshalJSON Uses

func (v *EventInlineStyleInvalidated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventPseudoElementAdded Uses

type EventPseudoElementAdded struct {
    ParentID      cdp.NodeID `json:"parentId"`      // Pseudo element's parent element id.
    PseudoElement *cdp.Node  `json:"pseudoElement"` // The added pseudo element.
}

EventPseudoElementAdded called when a pseudo element is added to an element.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementAdded

func (EventPseudoElementAdded) MarshalEasyJSON Uses

func (v EventPseudoElementAdded) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventPseudoElementAdded) MarshalJSON Uses

func (v EventPseudoElementAdded) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventPseudoElementAdded) UnmarshalEasyJSON Uses

func (v *EventPseudoElementAdded) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventPseudoElementAdded) UnmarshalJSON Uses

func (v *EventPseudoElementAdded) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventPseudoElementRemoved Uses

type EventPseudoElementRemoved struct {
    ParentID        cdp.NodeID `json:"parentId"`        // Pseudo element's parent element id.
    PseudoElementID cdp.NodeID `json:"pseudoElementId"` // The removed pseudo element id.
}

EventPseudoElementRemoved called when a pseudo element is removed from an element.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementRemoved

func (EventPseudoElementRemoved) MarshalEasyJSON Uses

func (v EventPseudoElementRemoved) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventPseudoElementRemoved) MarshalJSON Uses

func (v EventPseudoElementRemoved) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventPseudoElementRemoved) UnmarshalEasyJSON Uses

func (v *EventPseudoElementRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventPseudoElementRemoved) UnmarshalJSON Uses

func (v *EventPseudoElementRemoved) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventSetChildNodes Uses

type EventSetChildNodes struct {
    ParentID cdp.NodeID  `json:"parentId"` // Parent node id to populate with children.
    Nodes    []*cdp.Node `json:"nodes"`    // Child nodes array.
}

EventSetChildNodes fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-setChildNodes

func (EventSetChildNodes) MarshalEasyJSON Uses

func (v EventSetChildNodes) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventSetChildNodes) MarshalJSON Uses

func (v EventSetChildNodes) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventSetChildNodes) UnmarshalEasyJSON Uses

func (v *EventSetChildNodes) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventSetChildNodes) UnmarshalJSON Uses

func (v *EventSetChildNodes) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventShadowRootPopped Uses

type EventShadowRootPopped struct {
    HostID cdp.NodeID `json:"hostId"` // Host element id.
    RootID cdp.NodeID `json:"rootId"` // Shadow root id.
}

EventShadowRootPopped called when shadow root is popped from the element.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPopped

func (EventShadowRootPopped) MarshalEasyJSON Uses

func (v EventShadowRootPopped) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventShadowRootPopped) MarshalJSON Uses

func (v EventShadowRootPopped) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventShadowRootPopped) UnmarshalEasyJSON Uses

func (v *EventShadowRootPopped) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventShadowRootPopped) UnmarshalJSON Uses

func (v *EventShadowRootPopped) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventShadowRootPushed Uses

type EventShadowRootPushed struct {
    HostID cdp.NodeID `json:"hostId"` // Host element id.
    Root   *cdp.Node  `json:"root"`   // Shadow root.
}

EventShadowRootPushed called when shadow root is pushed into the element.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPushed

func (EventShadowRootPushed) MarshalEasyJSON Uses

func (v EventShadowRootPushed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventShadowRootPushed) MarshalJSON Uses

func (v EventShadowRootPushed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventShadowRootPushed) UnmarshalEasyJSON Uses

func (v *EventShadowRootPushed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventShadowRootPushed) UnmarshalJSON Uses

func (v *EventShadowRootPushed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FocusParams Uses

type FocusParams struct {
    NodeID        cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node.
    BackendNodeID cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node.
    ObjectID      runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
}

FocusParams focuses the given element.

func Focus Uses

func Focus() *FocusParams

Focus focuses the given element.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-focus

parameters:

func (*FocusParams) Do Uses

func (p *FocusParams) Do(ctx context.Context) (err error)

Do executes DOM.focus against the provided context.

func (FocusParams) MarshalEasyJSON Uses

func (v FocusParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FocusParams) MarshalJSON Uses

func (v FocusParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FocusParams) UnmarshalEasyJSON Uses

func (v *FocusParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FocusParams) UnmarshalJSON Uses

func (v *FocusParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (FocusParams) WithBackendNodeID Uses

func (p FocusParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *FocusParams

WithBackendNodeID identifier of the backend node.

func (FocusParams) WithNodeID Uses

func (p FocusParams) WithNodeID(nodeID cdp.NodeID) *FocusParams

WithNodeID identifier of the node.

func (FocusParams) WithObjectID Uses

func (p FocusParams) WithObjectID(objectID runtime.RemoteObjectID) *FocusParams

WithObjectID JavaScript object id of the node wrapper.

type GetAttributesParams Uses

type GetAttributesParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node to retrieve attibutes for.
}

GetAttributesParams returns attributes for the specified node.

func GetAttributes Uses

func GetAttributes(nodeID cdp.NodeID) *GetAttributesParams

GetAttributes returns attributes for the specified node.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getAttributes

parameters:

nodeID - Id of the node to retrieve attibutes for.

func (*GetAttributesParams) Do Uses

func (p *GetAttributesParams) Do(ctx context.Context) (attributes []string, err error)

Do executes DOM.getAttributes against the provided context.

returns:

attributes - An interleaved array of node attribute names and values.

func (GetAttributesParams) MarshalEasyJSON Uses

func (v GetAttributesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAttributesParams) MarshalJSON Uses

func (v GetAttributesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAttributesParams) UnmarshalEasyJSON Uses

func (v *GetAttributesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAttributesParams) UnmarshalJSON Uses

func (v *GetAttributesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetAttributesReturns Uses

type GetAttributesReturns struct {
    Attributes []string `json:"attributes,omitempty"` // An interleaved array of node attribute names and values.
}

GetAttributesReturns return values.

func (GetAttributesReturns) MarshalEasyJSON Uses

func (v GetAttributesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAttributesReturns) MarshalJSON Uses

func (v GetAttributesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAttributesReturns) UnmarshalEasyJSON Uses

func (v *GetAttributesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAttributesReturns) UnmarshalJSON Uses

func (v *GetAttributesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetBoxModelParams Uses

type GetBoxModelParams struct {
    NodeID        cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node.
    BackendNodeID cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node.
    ObjectID      runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
}

GetBoxModelParams returns boxes for the given node.

func GetBoxModel Uses

func GetBoxModel() *GetBoxModelParams

GetBoxModel returns boxes for the given node.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getBoxModel

parameters:

func (*GetBoxModelParams) Do Uses

func (p *GetBoxModelParams) Do(ctx context.Context) (model *BoxModel, err error)

Do executes DOM.getBoxModel against the provided context.

returns:

model - Box model for the node.

func (GetBoxModelParams) MarshalEasyJSON Uses

func (v GetBoxModelParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBoxModelParams) MarshalJSON Uses

func (v GetBoxModelParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBoxModelParams) UnmarshalEasyJSON Uses

func (v *GetBoxModelParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBoxModelParams) UnmarshalJSON Uses

func (v *GetBoxModelParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetBoxModelParams) WithBackendNodeID Uses

func (p GetBoxModelParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetBoxModelParams

WithBackendNodeID identifier of the backend node.

func (GetBoxModelParams) WithNodeID Uses

func (p GetBoxModelParams) WithNodeID(nodeID cdp.NodeID) *GetBoxModelParams

WithNodeID identifier of the node.

func (GetBoxModelParams) WithObjectID Uses

func (p GetBoxModelParams) WithObjectID(objectID runtime.RemoteObjectID) *GetBoxModelParams

WithObjectID JavaScript object id of the node wrapper.

type GetBoxModelReturns Uses

type GetBoxModelReturns struct {
    Model *BoxModel `json:"model,omitempty"` // Box model for the node.
}

GetBoxModelReturns return values.

func (GetBoxModelReturns) MarshalEasyJSON Uses

func (v GetBoxModelReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBoxModelReturns) MarshalJSON Uses

func (v GetBoxModelReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBoxModelReturns) UnmarshalEasyJSON Uses

func (v *GetBoxModelReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBoxModelReturns) UnmarshalJSON Uses

func (v *GetBoxModelReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetContentQuadsParams Uses

type GetContentQuadsParams struct {
    NodeID        cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node.
    BackendNodeID cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node.
    ObjectID      runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
}

GetContentQuadsParams returns quads that describe node position on the page. This method might return multiple quads for inline nodes.

func GetContentQuads Uses

func GetContentQuads() *GetContentQuadsParams

GetContentQuads returns quads that describe node position on the page. This method might return multiple quads for inline nodes.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getContentQuads

parameters:

func (*GetContentQuadsParams) Do Uses

func (p *GetContentQuadsParams) Do(ctx context.Context) (quads []Quad, err error)

Do executes DOM.getContentQuads against the provided context.

returns:

quads - Quads that describe node layout relative to viewport.

func (GetContentQuadsParams) MarshalEasyJSON Uses

func (v GetContentQuadsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetContentQuadsParams) MarshalJSON Uses

func (v GetContentQuadsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetContentQuadsParams) UnmarshalEasyJSON Uses

func (v *GetContentQuadsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetContentQuadsParams) UnmarshalJSON Uses

func (v *GetContentQuadsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetContentQuadsParams) WithBackendNodeID Uses

func (p GetContentQuadsParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetContentQuadsParams

WithBackendNodeID identifier of the backend node.

func (GetContentQuadsParams) WithNodeID Uses

func (p GetContentQuadsParams) WithNodeID(nodeID cdp.NodeID) *GetContentQuadsParams

WithNodeID identifier of the node.

func (GetContentQuadsParams) WithObjectID Uses

func (p GetContentQuadsParams) WithObjectID(objectID runtime.RemoteObjectID) *GetContentQuadsParams

WithObjectID JavaScript object id of the node wrapper.

type GetContentQuadsReturns Uses

type GetContentQuadsReturns struct {
    Quads []Quad `json:"quads,omitempty"` // Quads that describe node layout relative to viewport.
}

GetContentQuadsReturns return values.

func (GetContentQuadsReturns) MarshalEasyJSON Uses

func (v GetContentQuadsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetContentQuadsReturns) MarshalJSON Uses

func (v GetContentQuadsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetContentQuadsReturns) UnmarshalEasyJSON Uses

func (v *GetContentQuadsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetContentQuadsReturns) UnmarshalJSON Uses

func (v *GetContentQuadsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetDocumentParams Uses

type GetDocumentParams struct {
    Depth  int64 `json:"depth,omitempty"`  // The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    Pierce bool  `json:"pierce,omitempty"` // Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
}

GetDocumentParams returns the root DOM node (and optionally the subtree) to the caller.

func GetDocument Uses

func GetDocument() *GetDocumentParams

GetDocument returns the root DOM node (and optionally the subtree) to the caller.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getDocument

parameters:

func (*GetDocumentParams) Do Uses

func (p *GetDocumentParams) Do(ctx context.Context) (root *cdp.Node, err error)

Do executes DOM.getDocument against the provided context.

returns:

root - Resulting node.

func (GetDocumentParams) MarshalEasyJSON Uses

func (v GetDocumentParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDocumentParams) MarshalJSON Uses

func (v GetDocumentParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetDocumentParams) UnmarshalEasyJSON Uses

func (v *GetDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDocumentParams) UnmarshalJSON Uses

func (v *GetDocumentParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetDocumentParams) WithDepth Uses

func (p GetDocumentParams) WithDepth(depth int64) *GetDocumentParams

WithDepth the maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.

func (GetDocumentParams) WithPierce Uses

func (p GetDocumentParams) WithPierce(pierce bool) *GetDocumentParams

WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).

type GetDocumentReturns Uses

type GetDocumentReturns struct {
    Root *cdp.Node `json:"root,omitempty"` // Resulting node.
}

GetDocumentReturns return values.

func (GetDocumentReturns) MarshalEasyJSON Uses

func (v GetDocumentReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDocumentReturns) MarshalJSON Uses

func (v GetDocumentReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetDocumentReturns) UnmarshalEasyJSON Uses

func (v *GetDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDocumentReturns) UnmarshalJSON Uses

func (v *GetDocumentReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetFileInfoParams Uses

type GetFileInfoParams struct {
    ObjectID runtime.RemoteObjectID `json:"objectId"` // JavaScript object id of the node wrapper.
}

GetFileInfoParams returns file information for the given File wrapper.

func GetFileInfo Uses

func GetFileInfo(objectID runtime.RemoteObjectID) *GetFileInfoParams

GetFileInfo returns file information for the given File wrapper.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getFileInfo

parameters:

objectID - JavaScript object id of the node wrapper.

func (*GetFileInfoParams) Do Uses

func (p *GetFileInfoParams) Do(ctx context.Context) (path string, err error)

Do executes DOM.getFileInfo against the provided context.

returns:

path

func (GetFileInfoParams) MarshalEasyJSON Uses

func (v GetFileInfoParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFileInfoParams) MarshalJSON Uses

func (v GetFileInfoParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetFileInfoParams) UnmarshalEasyJSON Uses

func (v *GetFileInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFileInfoParams) UnmarshalJSON Uses

func (v *GetFileInfoParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetFileInfoReturns Uses

type GetFileInfoReturns struct {
    Path string `json:"path,omitempty"`
}

GetFileInfoReturns return values.

func (GetFileInfoReturns) MarshalEasyJSON Uses

func (v GetFileInfoReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFileInfoReturns) MarshalJSON Uses

func (v GetFileInfoReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetFileInfoReturns) UnmarshalEasyJSON Uses

func (v *GetFileInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFileInfoReturns) UnmarshalJSON Uses

func (v *GetFileInfoReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetFrameOwnerParams Uses

type GetFrameOwnerParams struct {
    FrameID cdp.FrameID `json:"frameId"`
}

GetFrameOwnerParams returns iframe node that owns iframe with the given domain.

func GetFrameOwner Uses

func GetFrameOwner(frameID cdp.FrameID) *GetFrameOwnerParams

GetFrameOwner returns iframe node that owns iframe with the given domain.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getFrameOwner

parameters:

frameID

func (*GetFrameOwnerParams) Do Uses

func (p *GetFrameOwnerParams) Do(ctx context.Context) (backendNodeID cdp.BackendNodeID, nodeID cdp.NodeID, err error)

Do executes DOM.getFrameOwner against the provided context.

returns:

backendNodeID - Resulting node.
nodeID - Id of the node at given coordinates, only when enabled and requested document.

func (GetFrameOwnerParams) MarshalEasyJSON Uses

func (v GetFrameOwnerParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFrameOwnerParams) MarshalJSON Uses

func (v GetFrameOwnerParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetFrameOwnerParams) UnmarshalEasyJSON Uses

func (v *GetFrameOwnerParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFrameOwnerParams) UnmarshalJSON Uses

func (v *GetFrameOwnerParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetFrameOwnerReturns Uses

type GetFrameOwnerReturns struct {
    BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Resulting node.
    NodeID        cdp.NodeID        `json:"nodeId,omitempty"`        // Id of the node at given coordinates, only when enabled and requested document.
}

GetFrameOwnerReturns return values.

func (GetFrameOwnerReturns) MarshalEasyJSON Uses

func (v GetFrameOwnerReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFrameOwnerReturns) MarshalJSON Uses

func (v GetFrameOwnerReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetFrameOwnerReturns) UnmarshalEasyJSON Uses

func (v *GetFrameOwnerReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFrameOwnerReturns) UnmarshalJSON Uses

func (v *GetFrameOwnerReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetNodeForLocationParams Uses

type GetNodeForLocationParams struct {
    X                         int64 `json:"x"`                                   // X coordinate.
    Y                         int64 `json:"y"`                                   // Y coordinate.
    IncludeUserAgentShadowDOM bool  `json:"includeUserAgentShadowDOM,omitempty"` // False to skip to the nearest non-UA shadow root ancestor (default: false).
    IgnorePointerEventsNone   bool  `json:"ignorePointerEventsNone,omitempty"`   // Whether to ignore pointer-events: none on elements and hit test them.
}

GetNodeForLocationParams returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.

func GetNodeForLocation Uses

func GetNodeForLocation(x int64, y int64) *GetNodeForLocationParams

GetNodeForLocation returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getNodeForLocation

parameters:

x - X coordinate.
y - Y coordinate.

func (*GetNodeForLocationParams) Do Uses

func (p *GetNodeForLocationParams) Do(ctx context.Context) (backendNodeID cdp.BackendNodeID, frameID cdp.FrameID, nodeID cdp.NodeID, err error)

Do executes DOM.getNodeForLocation against the provided context.

returns:

backendNodeID - Resulting node.
frameID - Frame this node belongs to.
nodeID - Id of the node at given coordinates, only when enabled and requested document.

func (GetNodeForLocationParams) MarshalEasyJSON Uses

func (v GetNodeForLocationParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNodeForLocationParams) MarshalJSON Uses

func (v GetNodeForLocationParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNodeForLocationParams) UnmarshalEasyJSON Uses

func (v *GetNodeForLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNodeForLocationParams) UnmarshalJSON Uses

func (v *GetNodeForLocationParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetNodeForLocationParams) WithIgnorePointerEventsNone Uses

func (p GetNodeForLocationParams) WithIgnorePointerEventsNone(ignorePointerEventsNone bool) *GetNodeForLocationParams

WithIgnorePointerEventsNone whether to ignore pointer-events: none on elements and hit test them.

func (GetNodeForLocationParams) WithIncludeUserAgentShadowDOM Uses

func (p GetNodeForLocationParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *GetNodeForLocationParams

WithIncludeUserAgentShadowDOM false to skip to the nearest non-UA shadow root ancestor (default: false).

type GetNodeForLocationReturns Uses

type GetNodeForLocationReturns struct {
    BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Resulting node.
    FrameID       cdp.FrameID       `json:"frameId,omitempty"`       // Frame this node belongs to.
    NodeID        cdp.NodeID        `json:"nodeId,omitempty"`        // Id of the node at given coordinates, only when enabled and requested document.
}

GetNodeForLocationReturns return values.

func (GetNodeForLocationReturns) MarshalEasyJSON Uses

func (v GetNodeForLocationReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNodeForLocationReturns) MarshalJSON Uses

func (v GetNodeForLocationReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNodeForLocationReturns) UnmarshalEasyJSON Uses

func (v *GetNodeForLocationReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNodeForLocationReturns) UnmarshalJSON Uses

func (v *GetNodeForLocationReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetNodeStackTracesParams Uses

type GetNodeStackTracesParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get stack traces for.
}

GetNodeStackTracesParams gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.

func GetNodeStackTraces Uses

func GetNodeStackTraces(nodeID cdp.NodeID) *GetNodeStackTracesParams

GetNodeStackTraces gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getNodeStackTraces

parameters:

nodeID - Id of the node to get stack traces for.

func (*GetNodeStackTracesParams) Do Uses

func (p *GetNodeStackTracesParams) Do(ctx context.Context) (creation *runtime.StackTrace, err error)

Do executes DOM.getNodeStackTraces against the provided context.

returns:

creation - Creation stack trace, if available.

func (GetNodeStackTracesParams) MarshalEasyJSON Uses

func (v GetNodeStackTracesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNodeStackTracesParams) MarshalJSON Uses

func (v GetNodeStackTracesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNodeStackTracesParams) UnmarshalEasyJSON Uses

func (v *GetNodeStackTracesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNodeStackTracesParams) UnmarshalJSON Uses

func (v *GetNodeStackTracesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetNodeStackTracesReturns Uses

type GetNodeStackTracesReturns struct {
    Creation *runtime.StackTrace `json:"creation,omitempty"` // Creation stack trace, if available.
}

GetNodeStackTracesReturns return values.

func (GetNodeStackTracesReturns) MarshalEasyJSON Uses

func (v GetNodeStackTracesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNodeStackTracesReturns) MarshalJSON Uses

func (v GetNodeStackTracesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNodeStackTracesReturns) UnmarshalEasyJSON Uses

func (v *GetNodeStackTracesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNodeStackTracesReturns) UnmarshalJSON Uses

func (v *GetNodeStackTracesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetNodesForSubtreeByStyleParams Uses

type GetNodesForSubtreeByStyleParams struct {
    NodeID         cdp.NodeID                  `json:"nodeId"`           // Node ID pointing to the root of a subtree.
    ComputedStyles []*CSSComputedStyleProperty `json:"computedStyles"`   // The style to filter nodes by (includes nodes if any of properties matches).
    Pierce         bool                        `json:"pierce,omitempty"` // Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).
}

GetNodesForSubtreeByStyleParams finds nodes with a given computed style in a subtree.

func GetNodesForSubtreeByStyle Uses

func GetNodesForSubtreeByStyle(nodeID cdp.NodeID, computedStyles []*CSSComputedStyleProperty) *GetNodesForSubtreeByStyleParams

GetNodesForSubtreeByStyle finds nodes with a given computed style in a subtree.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getNodesForSubtreeByStyle

parameters:

nodeID - Node ID pointing to the root of a subtree.
computedStyles - The style to filter nodes by (includes nodes if any of properties matches).

func (*GetNodesForSubtreeByStyleParams) Do Uses

func (p *GetNodesForSubtreeByStyleParams) Do(ctx context.Context) (nodeIds []cdp.NodeID, err error)

Do executes DOM.getNodesForSubtreeByStyle against the provided context.

returns:

nodeIds - Resulting nodes.

func (GetNodesForSubtreeByStyleParams) MarshalEasyJSON Uses

func (v GetNodesForSubtreeByStyleParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNodesForSubtreeByStyleParams) MarshalJSON Uses

func (v GetNodesForSubtreeByStyleParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNodesForSubtreeByStyleParams) UnmarshalEasyJSON Uses

func (v *GetNodesForSubtreeByStyleParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNodesForSubtreeByStyleParams) UnmarshalJSON Uses

func (v *GetNodesForSubtreeByStyleParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetNodesForSubtreeByStyleParams) WithPierce Uses

func (p GetNodesForSubtreeByStyleParams) WithPierce(pierce bool) *GetNodesForSubtreeByStyleParams

WithPierce whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).

type GetNodesForSubtreeByStyleReturns Uses

type GetNodesForSubtreeByStyleReturns struct {
    NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Resulting nodes.
}

GetNodesForSubtreeByStyleReturns return values.

func (GetNodesForSubtreeByStyleReturns) MarshalEasyJSON Uses

func (v GetNodesForSubtreeByStyleReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNodesForSubtreeByStyleReturns) MarshalJSON Uses

func (v GetNodesForSubtreeByStyleReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNodesForSubtreeByStyleReturns) UnmarshalEasyJSON Uses

func (v *GetNodesForSubtreeByStyleReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNodesForSubtreeByStyleReturns) UnmarshalJSON Uses

func (v *GetNodesForSubtreeByStyleReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetOuterHTMLParams Uses

type GetOuterHTMLParams struct {
    NodeID        cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node.
    BackendNodeID cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node.
    ObjectID      runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
}

GetOuterHTMLParams returns node's HTML markup.

func GetOuterHTML Uses

func GetOuterHTML() *GetOuterHTMLParams

GetOuterHTML returns node's HTML markup.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getOuterHTML

parameters:

func (*GetOuterHTMLParams) Do Uses

func (p *GetOuterHTMLParams) Do(ctx context.Context) (outerHTML string, err error)

Do executes DOM.getOuterHTML against the provided context.

returns:

outerHTML - Outer HTML markup.

func (GetOuterHTMLParams) MarshalEasyJSON Uses

func (v GetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetOuterHTMLParams) MarshalJSON Uses

func (v GetOuterHTMLParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetOuterHTMLParams) UnmarshalEasyJSON Uses

func (v *GetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetOuterHTMLParams) UnmarshalJSON Uses

func (v *GetOuterHTMLParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetOuterHTMLParams) WithBackendNodeID Uses

func (p GetOuterHTMLParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetOuterHTMLParams

WithBackendNodeID identifier of the backend node.

func (GetOuterHTMLParams) WithNodeID Uses

func (p GetOuterHTMLParams) WithNodeID(nodeID cdp.NodeID) *GetOuterHTMLParams

WithNodeID identifier of the node.

func (GetOuterHTMLParams) WithObjectID Uses

func (p GetOuterHTMLParams) WithObjectID(objectID runtime.RemoteObjectID) *GetOuterHTMLParams

WithObjectID JavaScript object id of the node wrapper.

type GetOuterHTMLReturns Uses

type GetOuterHTMLReturns struct {
    OuterHTML string `json:"outerHTML,omitempty"` // Outer HTML markup.
}

GetOuterHTMLReturns return values.

func (GetOuterHTMLReturns) MarshalEasyJSON Uses

func (v GetOuterHTMLReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetOuterHTMLReturns) MarshalJSON Uses

func (v GetOuterHTMLReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetOuterHTMLReturns) UnmarshalEasyJSON Uses

func (v *GetOuterHTMLReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetOuterHTMLReturns) UnmarshalJSON Uses

func (v *GetOuterHTMLReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRelayoutBoundaryParams Uses

type GetRelayoutBoundaryParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node.
}

GetRelayoutBoundaryParams returns the id of the nearest ancestor that is a relayout boundary.

func GetRelayoutBoundary Uses

func GetRelayoutBoundary(nodeID cdp.NodeID) *GetRelayoutBoundaryParams

GetRelayoutBoundary returns the id of the nearest ancestor that is a relayout boundary.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getRelayoutBoundary

parameters:

nodeID - Id of the node.

func (*GetRelayoutBoundaryParams) Do Uses

func (p *GetRelayoutBoundaryParams) Do(ctx context.Context) (nodeID cdp.NodeID, err error)

Do executes DOM.getRelayoutBoundary against the provided context.

returns:

nodeID - Relayout boundary node id for the given node.

func (GetRelayoutBoundaryParams) MarshalEasyJSON Uses

func (v GetRelayoutBoundaryParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRelayoutBoundaryParams) MarshalJSON Uses

func (v GetRelayoutBoundaryParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRelayoutBoundaryParams) UnmarshalEasyJSON Uses

func (v *GetRelayoutBoundaryParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRelayoutBoundaryParams) UnmarshalJSON Uses

func (v *GetRelayoutBoundaryParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRelayoutBoundaryReturns Uses

type GetRelayoutBoundaryReturns struct {
    NodeID cdp.NodeID `json:"nodeId,omitempty"` // Relayout boundary node id for the given node.
}

GetRelayoutBoundaryReturns return values.

func (GetRelayoutBoundaryReturns) MarshalEasyJSON Uses

func (v GetRelayoutBoundaryReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRelayoutBoundaryReturns) MarshalJSON Uses

func (v GetRelayoutBoundaryReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRelayoutBoundaryReturns) UnmarshalEasyJSON Uses

func (v *GetRelayoutBoundaryReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRelayoutBoundaryReturns) UnmarshalJSON Uses

func (v *GetRelayoutBoundaryReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetSearchResultsParams Uses

type GetSearchResultsParams struct {
    SearchID  string `json:"searchId"`  // Unique search session identifier.
    FromIndex int64  `json:"fromIndex"` // Start index of the search result to be returned.
    ToIndex   int64  `json:"toIndex"`   // End index of the search result to be returned.
}

GetSearchResultsParams returns search results from given fromIndex to given toIndex from the search with the given identifier.

func GetSearchResults Uses

func GetSearchResults(searchID string, fromIndex int64, toIndex int64) *GetSearchResultsParams

GetSearchResults returns search results from given fromIndex to given toIndex from the search with the given identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-getSearchResults

parameters:

searchID - Unique search session identifier.
fromIndex - Start index of the search result to be returned.
toIndex - End index of the search result to be returned.

func (*GetSearchResultsParams) Do Uses

func (p *GetSearchResultsParams) Do(ctx context.Context) (nodeIds []cdp.NodeID, err error)

Do executes DOM.getSearchResults against the provided context.

returns:

nodeIds - Ids of the search result nodes.

func (GetSearchResultsParams) MarshalEasyJSON Uses

func (v GetSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSearchResultsParams) MarshalJSON Uses

func (v GetSearchResultsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetSearchResultsParams) UnmarshalEasyJSON Uses

func (v *GetSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSearchResultsParams) UnmarshalJSON Uses

func (v *GetSearchResultsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetSearchResultsReturns Uses

type GetSearchResultsReturns struct {
    NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Ids of the search result nodes.
}

GetSearchResultsReturns return values.

func (GetSearchResultsReturns) MarshalEasyJSON Uses

func (v GetSearchResultsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSearchResultsReturns) MarshalJSON Uses

func (v GetSearchResultsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetSearchResultsReturns) UnmarshalEasyJSON Uses

func (v *GetSearchResultsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSearchResultsReturns) UnmarshalJSON Uses

func (v *GetSearchResultsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MarkUndoableStateParams Uses

type MarkUndoableStateParams struct{}

MarkUndoableStateParams marks last undoable state.

func MarkUndoableState Uses

func MarkUndoableState() *MarkUndoableStateParams

MarkUndoableState marks last undoable state.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-markUndoableState

func (*MarkUndoableStateParams) Do Uses

func (p *MarkUndoableStateParams) Do(ctx context.Context) (err error)

Do executes DOM.markUndoableState against the provided context.

func (MarkUndoableStateParams) MarshalEasyJSON Uses

func (v MarkUndoableStateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MarkUndoableStateParams) MarshalJSON Uses

func (v MarkUndoableStateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MarkUndoableStateParams) UnmarshalEasyJSON Uses

func (v *MarkUndoableStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MarkUndoableStateParams) UnmarshalJSON Uses

func (v *MarkUndoableStateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MoveToParams Uses

type MoveToParams struct {
    NodeID             cdp.NodeID `json:"nodeId"`                       // Id of the node to move.
    TargetNodeID       cdp.NodeID `json:"targetNodeId"`                 // Id of the element to drop the moved node into.
    InsertBeforeNodeID cdp.NodeID `json:"insertBeforeNodeId,omitempty"` // Drop node before this one (if absent, the moved node becomes the last child of targetNodeId).
}

MoveToParams moves node into the new container, places it before the given anchor.

func MoveTo Uses

func MoveTo(nodeID cdp.NodeID, targetNodeID cdp.NodeID) *MoveToParams

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.

func (*MoveToParams) Do Uses

func (p *MoveToParams) Do(ctx context.Context) (nodeID cdp.NodeID, err error)

Do executes DOM.moveTo against the provided context.

returns:

nodeID - New id of the moved node.

func (MoveToParams) MarshalEasyJSON Uses

func (v MoveToParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MoveToParams) MarshalJSON Uses

func (v MoveToParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MoveToParams) UnmarshalEasyJSON Uses

func (v *MoveToParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MoveToParams) UnmarshalJSON Uses

func (v *MoveToParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (MoveToParams) WithInsertBeforeNodeID Uses

func (p MoveToParams) WithInsertBeforeNodeID(insertBeforeNodeID cdp.NodeID) *MoveToParams

WithInsertBeforeNodeID drop node before this one (if absent, the moved node becomes the last child of targetNodeId).

type MoveToReturns Uses

type MoveToReturns struct {
    NodeID cdp.NodeID `json:"nodeId,omitempty"` // New id of the moved node.
}

MoveToReturns return values.

func (MoveToReturns) MarshalEasyJSON Uses

func (v MoveToReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MoveToReturns) MarshalJSON Uses

func (v MoveToReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MoveToReturns) UnmarshalEasyJSON Uses

func (v *MoveToReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MoveToReturns) UnmarshalJSON Uses

func (v *MoveToReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PerformSearchParams Uses

type PerformSearchParams struct {
    Query                     string `json:"query"`                               // Plain text or query selector or XPath search query.
    IncludeUserAgentShadowDOM bool   `json:"includeUserAgentShadowDOM,omitempty"` // True to search in user agent shadow DOM.
}

PerformSearchParams searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.

func PerformSearch Uses

func PerformSearch(query string) *PerformSearchParams

PerformSearch searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-performSearch

parameters:

query - Plain text or query selector or XPath search query.

func (*PerformSearchParams) Do Uses

func (p *PerformSearchParams) Do(ctx context.Context) (searchID string, resultCount int64, err error)

Do executes DOM.performSearch against the provided context.

returns:

searchID - Unique search session identifier.
resultCount - Number of search results.

func (PerformSearchParams) MarshalEasyJSON Uses

func (v PerformSearchParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PerformSearchParams) MarshalJSON Uses

func (v PerformSearchParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PerformSearchParams) UnmarshalEasyJSON Uses

func (v *PerformSearchParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PerformSearchParams) UnmarshalJSON Uses

func (v *PerformSearchParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (PerformSearchParams) WithIncludeUserAgentShadowDOM Uses

func (p PerformSearchParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *PerformSearchParams

WithIncludeUserAgentShadowDOM true to search in user agent shadow DOM.

type PerformSearchReturns Uses

type PerformSearchReturns struct {
    SearchID    string `json:"searchId,omitempty"`    // Unique search session identifier.
    ResultCount int64  `json:"resultCount,omitempty"` // Number of search results.
}

PerformSearchReturns return values.

func (PerformSearchReturns) MarshalEasyJSON Uses

func (v PerformSearchReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PerformSearchReturns) MarshalJSON Uses

func (v PerformSearchReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PerformSearchReturns) UnmarshalEasyJSON Uses

func (v *PerformSearchReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PerformSearchReturns) UnmarshalJSON Uses

func (v *PerformSearchReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PushNodeByPathToFrontendParams Uses

type PushNodeByPathToFrontendParams struct {
    Path string `json:"path"` // Path to node in the proprietary format.
}

PushNodeByPathToFrontendParams requests that the node is sent to the caller given its path. // FIXME, use XPath.

func PushNodeByPathToFrontend Uses

func PushNodeByPathToFrontend(path string) *PushNodeByPathToFrontendParams

PushNodeByPathToFrontend requests that the node is sent to the caller given its path. // FIXME, use XPath.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-pushNodeByPathToFrontend

parameters:

path - Path to node in the proprietary format.

func (*PushNodeByPathToFrontendParams) Do Uses

func (p *PushNodeByPathToFrontendParams) Do(ctx context.Context) (nodeID cdp.NodeID, err error)

Do executes DOM.pushNodeByPathToFrontend against the provided context.

returns:

nodeID - Id of the node for given path.

func (PushNodeByPathToFrontendParams) MarshalEasyJSON Uses

func (v PushNodeByPathToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PushNodeByPathToFrontendParams) MarshalJSON Uses

func (v PushNodeByPathToFrontendParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PushNodeByPathToFrontendParams) UnmarshalEasyJSON Uses

func (v *PushNodeByPathToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PushNodeByPathToFrontendParams) UnmarshalJSON Uses

func (v *PushNodeByPathToFrontendParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PushNodeByPathToFrontendReturns Uses

type PushNodeByPathToFrontendReturns struct {
    NodeID cdp.NodeID `json:"nodeId,omitempty"` // Id of the node for given path.
}

PushNodeByPathToFrontendReturns return values.

func (PushNodeByPathToFrontendReturns) MarshalEasyJSON Uses

func (v PushNodeByPathToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PushNodeByPathToFrontendReturns) MarshalJSON Uses

func (v PushNodeByPathToFrontendReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PushNodeByPathToFrontendReturns) UnmarshalEasyJSON Uses

func (v *PushNodeByPathToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PushNodeByPathToFrontendReturns) UnmarshalJSON Uses

func (v *PushNodeByPathToFrontendReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PushNodesByBackendIdsToFrontendParams Uses

type PushNodesByBackendIdsToFrontendParams struct {
    BackendNodeIds []cdp.BackendNodeID `json:"backendNodeIds"` // The array of backend node ids.
}

PushNodesByBackendIdsToFrontendParams requests that a batch of nodes is sent to the caller given their backend node ids.

func PushNodesByBackendIdsToFrontend Uses

func PushNodesByBackendIdsToFrontend(backendNodeIds []cdp.BackendNodeID) *PushNodesByBackendIdsToFrontendParams

PushNodesByBackendIdsToFrontend requests that a batch of nodes is sent to the caller given their backend node ids.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-pushNodesByBackendIdsToFrontend

parameters:

backendNodeIds - The array of backend node ids.

func (*PushNodesByBackendIdsToFrontendParams) Do Uses

func (p *PushNodesByBackendIdsToFrontendParams) Do(ctx context.Context) (nodeIds []cdp.NodeID, err error)

Do executes DOM.pushNodesByBackendIdsToFrontend against the provided context.

returns:

nodeIds - The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.

func (PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON Uses

func (v PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PushNodesByBackendIdsToFrontendParams) MarshalJSON Uses

func (v PushNodesByBackendIdsToFrontendParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON Uses

func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PushNodesByBackendIdsToFrontendParams) UnmarshalJSON Uses

func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PushNodesByBackendIdsToFrontendReturns Uses

type PushNodesByBackendIdsToFrontendReturns struct {
    NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.
}

PushNodesByBackendIdsToFrontendReturns return values.

func (PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON Uses

func (v PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PushNodesByBackendIdsToFrontendReturns) MarshalJSON Uses

func (v PushNodesByBackendIdsToFrontendReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON Uses

func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON Uses

func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Quad Uses

type Quad []float64

Quad an array of quad vertices, x immediately followed by y for each point, points clock-wise.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-Quad

type QuerySelectorAllParams Uses

type QuerySelectorAllParams struct {
    NodeID   cdp.NodeID `json:"nodeId"`   // Id of the node to query upon.
    Selector string     `json:"selector"` // Selector string.
}

QuerySelectorAllParams executes querySelectorAll on a given node.

func QuerySelectorAll Uses

func QuerySelectorAll(nodeID cdp.NodeID, selector string) *QuerySelectorAllParams

QuerySelectorAll executes querySelectorAll on a given node.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-querySelectorAll

parameters:

nodeID - Id of the node to query upon.
selector - Selector string.

func (*QuerySelectorAllParams) Do Uses

func (p *QuerySelectorAllParams) Do(ctx context.Context) (nodeIds []cdp.NodeID, err error)

Do executes DOM.querySelectorAll against the provided context.

returns:

nodeIds - Query selector result.

func (QuerySelectorAllParams) MarshalEasyJSON Uses

func (v QuerySelectorAllParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QuerySelectorAllParams) MarshalJSON Uses

func (v QuerySelectorAllParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*QuerySelectorAllParams) UnmarshalEasyJSON Uses

func (v *QuerySelectorAllParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QuerySelectorAllParams) UnmarshalJSON Uses

func (v *QuerySelectorAllParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type QuerySelectorAllReturns Uses

type QuerySelectorAllReturns struct {
    NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // Query selector result.
}

QuerySelectorAllReturns return values.

func (QuerySelectorAllReturns) MarshalEasyJSON Uses

func (v QuerySelectorAllReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QuerySelectorAllReturns) MarshalJSON Uses

func (v QuerySelectorAllReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*QuerySelectorAllReturns) UnmarshalEasyJSON Uses

func (v *QuerySelectorAllReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QuerySelectorAllReturns) UnmarshalJSON Uses

func (v *QuerySelectorAllReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type QuerySelectorParams Uses

type QuerySelectorParams struct {
    NodeID   cdp.NodeID `json:"nodeId"`   // Id of the node to query upon.
    Selector string     `json:"selector"` // Selector string.
}

QuerySelectorParams executes querySelector on a given node.

func QuerySelector Uses

func QuerySelector(nodeID cdp.NodeID, selector string) *QuerySelectorParams

QuerySelector executes querySelector on a given node.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-querySelector

parameters:

nodeID - Id of the node to query upon.
selector - Selector string.

func (*QuerySelectorParams) Do Uses

func (p *QuerySelectorParams) Do(ctx context.Context) (nodeID cdp.NodeID, err error)

Do executes DOM.querySelector against the provided context.

returns:

nodeID - Query selector result.

func (QuerySelectorParams) MarshalEasyJSON Uses

func (v QuerySelectorParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QuerySelectorParams) MarshalJSON Uses

func (v QuerySelectorParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*QuerySelectorParams) UnmarshalEasyJSON Uses

func (v *QuerySelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QuerySelectorParams) UnmarshalJSON Uses

func (v *QuerySelectorParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type QuerySelectorReturns Uses

type QuerySelectorReturns struct {
    NodeID cdp.NodeID `json:"nodeId,omitempty"` // Query selector result.
}

QuerySelectorReturns return values.

func (QuerySelectorReturns) MarshalEasyJSON Uses

func (v QuerySelectorReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QuerySelectorReturns) MarshalJSON Uses

func (v QuerySelectorReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*QuerySelectorReturns) UnmarshalEasyJSON Uses

func (v *QuerySelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QuerySelectorReturns) UnmarshalJSON Uses

func (v *QuerySelectorReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Rect Uses

type Rect struct {
    X      float64 `json:"x"`      // X coordinate
    Y      float64 `json:"y"`      // Y coordinate
    Width  float64 `json:"width"`  // Rectangle width
    Height float64 `json:"height"` // Rectangle height
}

Rect Rectangle.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-Rect

func (Rect) MarshalEasyJSON Uses

func (v Rect) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Rect) MarshalJSON Uses

func (v Rect) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Rect) UnmarshalEasyJSON Uses

func (v *Rect) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Rect) UnmarshalJSON Uses

func (v *Rect) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RedoParams Uses

type RedoParams struct{}

RedoParams re-does the last undone action.

func Redo Uses

func Redo() *RedoParams

Redo re-does the last undone action.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-redo

func (*RedoParams) Do Uses

func (p *RedoParams) Do(ctx context.Context) (err error)

Do executes DOM.redo against the provided context.

func (RedoParams) MarshalEasyJSON Uses

func (v RedoParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RedoParams) MarshalJSON Uses

func (v RedoParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RedoParams) UnmarshalEasyJSON Uses

func (v *RedoParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RedoParams) UnmarshalJSON Uses

func (v *RedoParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoveAttributeParams Uses

type RemoveAttributeParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the element to remove attribute from.
    Name   string     `json:"name"`   // Name of the attribute to remove.
}

RemoveAttributeParams removes attribute with given name from an element with given id.

func RemoveAttribute Uses

func RemoveAttribute(nodeID cdp.NodeID, name string) *RemoveAttributeParams

RemoveAttribute removes attribute with given name from an element with given id.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-removeAttribute

parameters:

nodeID - Id of the element to remove attribute from.
name - Name of the attribute to remove.

func (*RemoveAttributeParams) Do Uses

func (p *RemoveAttributeParams) Do(ctx context.Context) (err error)

Do executes DOM.removeAttribute against the provided context.

func (RemoveAttributeParams) MarshalEasyJSON Uses

func (v RemoveAttributeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveAttributeParams) MarshalJSON Uses

func (v RemoveAttributeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveAttributeParams) UnmarshalEasyJSON Uses

func (v *RemoveAttributeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveAttributeParams) UnmarshalJSON Uses

func (v *RemoveAttributeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoveNodeParams Uses

type RemoveNodeParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node to remove.
}

RemoveNodeParams removes node with given id.

func RemoveNode Uses

func RemoveNode(nodeID cdp.NodeID) *RemoveNodeParams

RemoveNode removes node with given id.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-removeNode

parameters:

nodeID - Id of the node to remove.

func (*RemoveNodeParams) Do Uses

func (p *RemoveNodeParams) Do(ctx context.Context) (err error)

Do executes DOM.removeNode against the provided context.

func (RemoveNodeParams) MarshalEasyJSON Uses

func (v RemoveNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveNodeParams) MarshalJSON Uses

func (v RemoveNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveNodeParams) UnmarshalEasyJSON Uses

func (v *RemoveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveNodeParams) UnmarshalJSON Uses

func (v *RemoveNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestChildNodesParams Uses

type RequestChildNodesParams struct {
    NodeID cdp.NodeID `json:"nodeId"`           // Id of the node to get children for.
    Depth  int64      `json:"depth,omitempty"`  // The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    Pierce bool       `json:"pierce,omitempty"` // Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).
}

RequestChildNodesParams requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.

func RequestChildNodes Uses

func RequestChildNodes(nodeID cdp.NodeID) *RequestChildNodesParams

RequestChildNodes requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-requestChildNodes

parameters:

nodeID - Id of the node to get children for.

func (*RequestChildNodesParams) Do Uses

func (p *RequestChildNodesParams) Do(ctx context.Context) (err error)

Do executes DOM.requestChildNodes against the provided context.

func (RequestChildNodesParams) MarshalEasyJSON Uses

func (v RequestChildNodesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestChildNodesParams) MarshalJSON Uses

func (v RequestChildNodesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestChildNodesParams) UnmarshalEasyJSON Uses

func (v *RequestChildNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestChildNodesParams) UnmarshalJSON Uses

func (v *RequestChildNodesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (RequestChildNodesParams) WithDepth Uses

func (p RequestChildNodesParams) WithDepth(depth int64) *RequestChildNodesParams

WithDepth the maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.

func (RequestChildNodesParams) WithPierce Uses

func (p RequestChildNodesParams) WithPierce(pierce bool) *RequestChildNodesParams

WithPierce whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).

type RequestNodeParams Uses

type RequestNodeParams struct {
    ObjectID runtime.RemoteObjectID `json:"objectId"` // JavaScript object id to convert into node.
}

RequestNodeParams requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications.

func RequestNode Uses

func RequestNode(objectID runtime.RemoteObjectID) *RequestNodeParams

RequestNode requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-requestNode

parameters:

objectID - JavaScript object id to convert into node.

func (*RequestNodeParams) Do Uses

func (p *RequestNodeParams) Do(ctx context.Context) (nodeID cdp.NodeID, err error)

Do executes DOM.requestNode against the provided context.

returns:

nodeID - Node id for given object.

func (RequestNodeParams) MarshalEasyJSON Uses

func (v RequestNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestNodeParams) MarshalJSON Uses

func (v RequestNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestNodeParams) UnmarshalEasyJSON Uses

func (v *RequestNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestNodeParams) UnmarshalJSON Uses

func (v *RequestNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestNodeReturns Uses

type RequestNodeReturns struct {
    NodeID cdp.NodeID `json:"nodeId,omitempty"` // Node id for given object.
}

RequestNodeReturns return values.

func (RequestNodeReturns) MarshalEasyJSON Uses

func (v RequestNodeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestNodeReturns) MarshalJSON Uses

func (v RequestNodeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestNodeReturns) UnmarshalEasyJSON Uses

func (v *RequestNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestNodeReturns) UnmarshalJSON Uses

func (v *RequestNodeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResolveNodeParams Uses

type ResolveNodeParams struct {
    NodeID             cdp.NodeID                 `json:"nodeId,omitempty"`             // Id of the node to resolve.
    BackendNodeID      cdp.BackendNodeID          `json:"backendNodeId,omitempty"`      // Backend identifier of the node to resolve.
    ObjectGroup        string                     `json:"objectGroup,omitempty"`        // Symbolic group name that can be used to release multiple objects.
    ExecutionContextID runtime.ExecutionContextID `json:"executionContextId,omitempty"` // Execution context in which to resolve the node.
}

ResolveNodeParams resolves the JavaScript node object for a given NodeId or BackendNodeId.

func ResolveNode Uses

func ResolveNode() *ResolveNodeParams

ResolveNode resolves the JavaScript node object for a given NodeId or BackendNodeId.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-resolveNode

parameters:

func (*ResolveNodeParams) Do Uses

func (p *ResolveNodeParams) Do(ctx context.Context) (object *runtime.RemoteObject, err error)

Do executes DOM.resolveNode against the provided context.

returns:

object - JavaScript object wrapper for given node.

func (ResolveNodeParams) MarshalEasyJSON Uses

func (v ResolveNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResolveNodeParams) MarshalJSON Uses

func (v ResolveNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResolveNodeParams) UnmarshalEasyJSON Uses

func (v *ResolveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResolveNodeParams) UnmarshalJSON Uses

func (v *ResolveNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ResolveNodeParams) WithBackendNodeID Uses

func (p ResolveNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ResolveNodeParams

WithBackendNodeID backend identifier of the node to resolve.

func (ResolveNodeParams) WithExecutionContextID Uses

func (p ResolveNodeParams) WithExecutionContextID(executionContextID runtime.ExecutionContextID) *ResolveNodeParams

WithExecutionContextID execution context in which to resolve the node.

func (ResolveNodeParams) WithNodeID Uses

func (p ResolveNodeParams) WithNodeID(nodeID cdp.NodeID) *ResolveNodeParams

WithNodeID ID of the node to resolve.

func (ResolveNodeParams) WithObjectGroup Uses

func (p ResolveNodeParams) WithObjectGroup(objectGroup string) *ResolveNodeParams

WithObjectGroup symbolic group name that can be used to release multiple objects.

type ResolveNodeReturns Uses

type ResolveNodeReturns struct {
    Object *runtime.RemoteObject `json:"object,omitempty"` // JavaScript object wrapper for given node.
}

ResolveNodeReturns return values.

func (ResolveNodeReturns) MarshalEasyJSON Uses

func (v ResolveNodeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResolveNodeReturns) MarshalJSON Uses

func (v ResolveNodeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResolveNodeReturns) UnmarshalEasyJSON Uses

func (v *ResolveNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResolveNodeReturns) UnmarshalJSON Uses

func (v *ResolveNodeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScrollIntoViewIfNeededParams Uses

type ScrollIntoViewIfNeededParams struct {
    NodeID        cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node.
    BackendNodeID cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node.
    ObjectID      runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
    Rect          *Rect                  `json:"rect,omitempty"`          // The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.
}

ScrollIntoViewIfNeededParams scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

func ScrollIntoViewIfNeeded Uses

func ScrollIntoViewIfNeeded() *ScrollIntoViewIfNeededParams

ScrollIntoViewIfNeeded scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-scrollIntoViewIfNeeded

parameters:

func (*ScrollIntoViewIfNeededParams) Do Uses

func (p *ScrollIntoViewIfNeededParams) Do(ctx context.Context) (err error)

Do executes DOM.scrollIntoViewIfNeeded against the provided context.

func (ScrollIntoViewIfNeededParams) MarshalEasyJSON Uses

func (v ScrollIntoViewIfNeededParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScrollIntoViewIfNeededParams) MarshalJSON Uses

func (v ScrollIntoViewIfNeededParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScrollIntoViewIfNeededParams) UnmarshalEasyJSON Uses

func (v *ScrollIntoViewIfNeededParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScrollIntoViewIfNeededParams) UnmarshalJSON Uses

func (v *ScrollIntoViewIfNeededParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ScrollIntoViewIfNeededParams) WithBackendNodeID Uses

func (p ScrollIntoViewIfNeededParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ScrollIntoViewIfNeededParams

WithBackendNodeID identifier of the backend node.

func (ScrollIntoViewIfNeededParams) WithNodeID Uses

func (p ScrollIntoViewIfNeededParams) WithNodeID(nodeID cdp.NodeID) *ScrollIntoViewIfNeededParams

WithNodeID identifier of the node.

func (ScrollIntoViewIfNeededParams) WithObjectID Uses

func (p ScrollIntoViewIfNeededParams) WithObjectID(objectID runtime.RemoteObjectID) *ScrollIntoViewIfNeededParams

WithObjectID JavaScript object id of the node wrapper.

func (ScrollIntoViewIfNeededParams) WithRect Uses

func (p ScrollIntoViewIfNeededParams) WithRect(rect *Rect) *ScrollIntoViewIfNeededParams

WithRect the rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.

type SetAttributeValueParams Uses

type SetAttributeValueParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the element to set attribute for.
    Name   string     `json:"name"`   // Attribute name.
    Value  string     `json:"value"`  // Attribute value.
}

SetAttributeValueParams sets attribute for an element with given id.

func SetAttributeValue Uses

func SetAttributeValue(nodeID cdp.NodeID, name string, value string) *SetAttributeValueParams

SetAttributeValue sets attribute for an element with given id.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setAttributeValue

parameters:

nodeID - Id of the element to set attribute for.
name - Attribute name.
value - Attribute value.

func (*SetAttributeValueParams) Do Uses

func (p *SetAttributeValueParams) Do(ctx context.Context) (err error)

Do executes DOM.setAttributeValue against the provided context.

func (SetAttributeValueParams) MarshalEasyJSON Uses

func (v SetAttributeValueParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAttributeValueParams) MarshalJSON Uses

func (v SetAttributeValueParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetAttributeValueParams) UnmarshalEasyJSON Uses

func (v *SetAttributeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAttributeValueParams) UnmarshalJSON Uses

func (v *SetAttributeValueParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetAttributesAsTextParams Uses

type SetAttributesAsTextParams struct {
    NodeID cdp.NodeID `json:"nodeId"`         // Id of the element to set attributes for.
    Text   string     `json:"text"`           // Text with a number of attributes. Will parse this text using HTML parser.
    Name   string     `json:"name,omitempty"` // Attribute name to replace with new attributes derived from text in case text parsed successfully.
}

SetAttributesAsTextParams sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

func SetAttributesAsText Uses

func SetAttributesAsText(nodeID cdp.NodeID, text string) *SetAttributesAsTextParams

SetAttributesAsText sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setAttributesAsText

parameters:

nodeID - Id of the element to set attributes for.
text - Text with a number of attributes. Will parse this text using HTML parser.

func (*SetAttributesAsTextParams) Do Uses

func (p *SetAttributesAsTextParams) Do(ctx context.Context) (err error)

Do executes DOM.setAttributesAsText against the provided context.

func (SetAttributesAsTextParams) MarshalEasyJSON Uses

func (v SetAttributesAsTextParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAttributesAsTextParams) MarshalJSON Uses

func (v SetAttributesAsTextParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetAttributesAsTextParams) UnmarshalEasyJSON Uses

func (v *SetAttributesAsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAttributesAsTextParams) UnmarshalJSON Uses

func (v *SetAttributesAsTextParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetAttributesAsTextParams) WithName Uses

func (p SetAttributesAsTextParams) WithName(name string) *SetAttributesAsTextParams

WithName attribute name to replace with new attributes derived from text in case text parsed successfully.

type SetFileInputFilesParams Uses

type SetFileInputFilesParams struct {
    Files         []string               `json:"files"`                   // Array of file paths to set.
    NodeID        cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node.
    BackendNodeID cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node.
    ObjectID      runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
}

SetFileInputFilesParams sets files for the given file input element.

func SetFileInputFiles Uses

func SetFileInputFiles(files []string) *SetFileInputFilesParams

SetFileInputFiles sets files for the given file input element.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setFileInputFiles

parameters:

files - Array of file paths to set.

func (*SetFileInputFilesParams) Do Uses

func (p *SetFileInputFilesParams) Do(ctx context.Context) (err error)

Do executes DOM.setFileInputFiles against the provided context.

func (SetFileInputFilesParams) MarshalEasyJSON Uses

func (v SetFileInputFilesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetFileInputFilesParams) MarshalJSON Uses

func (v SetFileInputFilesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetFileInputFilesParams) UnmarshalEasyJSON Uses

func (v *SetFileInputFilesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetFileInputFilesParams) UnmarshalJSON Uses

func (v *SetFileInputFilesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetFileInputFilesParams) WithBackendNodeID Uses

func (p SetFileInputFilesParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *SetFileInputFilesParams

WithBackendNodeID identifier of the backend node.

func (SetFileInputFilesParams) WithNodeID Uses

func (p SetFileInputFilesParams) WithNodeID(nodeID cdp.NodeID) *SetFileInputFilesParams

WithNodeID identifier of the node.

func (SetFileInputFilesParams) WithObjectID Uses

func (p SetFileInputFilesParams) WithObjectID(objectID runtime.RemoteObjectID) *SetFileInputFilesParams

WithObjectID JavaScript object id of the node wrapper.

type SetInspectedNodeParams Uses

type SetInspectedNodeParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // DOM node id to be accessible by means of $x command line API.
}

SetInspectedNodeParams enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

func SetInspectedNode Uses

func SetInspectedNode(nodeID cdp.NodeID) *SetInspectedNodeParams

SetInspectedNode enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setInspectedNode

parameters:

nodeID - DOM node id to be accessible by means of $x command line API.

func (*SetInspectedNodeParams) Do Uses

func (p *SetInspectedNodeParams) Do(ctx context.Context) (err error)

Do executes DOM.setInspectedNode against the provided context.

func (SetInspectedNodeParams) MarshalEasyJSON Uses

func (v SetInspectedNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetInspectedNodeParams) MarshalJSON Uses

func (v SetInspectedNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetInspectedNodeParams) UnmarshalEasyJSON Uses

func (v *SetInspectedNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetInspectedNodeParams) UnmarshalJSON Uses

func (v *SetInspectedNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetNodeNameParams Uses

type SetNodeNameParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node to set name for.
    Name   string     `json:"name"`   // New node's name.
}

SetNodeNameParams sets node name for a node with given id.

func SetNodeName Uses

func SetNodeName(nodeID cdp.NodeID, name string) *SetNodeNameParams

SetNodeName sets node name for a node with given id.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setNodeName

parameters:

nodeID - Id of the node to set name for.
name - New node's name.

func (*SetNodeNameParams) Do Uses

func (p *SetNodeNameParams) Do(ctx context.Context) (nodeID cdp.NodeID, err error)

Do executes DOM.setNodeName against the provided context.

returns:

nodeID - New node's id.

func (SetNodeNameParams) MarshalEasyJSON Uses

func (v SetNodeNameParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetNodeNameParams) MarshalJSON Uses

func (v SetNodeNameParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetNodeNameParams) UnmarshalEasyJSON Uses

func (v *SetNodeNameParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetNodeNameParams) UnmarshalJSON Uses

func (v *SetNodeNameParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetNodeNameReturns Uses

type SetNodeNameReturns struct {
    NodeID cdp.NodeID `json:"nodeId,omitempty"` // New node's id.
}

SetNodeNameReturns return values.

func (SetNodeNameReturns) MarshalEasyJSON Uses

func (v SetNodeNameReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetNodeNameReturns) MarshalJSON Uses

func (v SetNodeNameReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetNodeNameReturns) UnmarshalEasyJSON Uses

func (v *SetNodeNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetNodeNameReturns) UnmarshalJSON Uses

func (v *SetNodeNameReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetNodeStackTracesEnabledParams Uses

type SetNodeStackTracesEnabledParams struct {
    Enable bool `json:"enable"` // Enable or disable.
}

SetNodeStackTracesEnabledParams sets if stack traces should be captured for Nodes. See Node.getNodeStackTraces. Default is disabled.

func SetNodeStackTracesEnabled Uses

func SetNodeStackTracesEnabled(enable bool) *SetNodeStackTracesEnabledParams

SetNodeStackTracesEnabled sets if stack traces should be captured for Nodes. See Node.getNodeStackTraces. Default is disabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setNodeStackTracesEnabled

parameters:

enable - Enable or disable.

func (*SetNodeStackTracesEnabledParams) Do Uses

func (p *SetNodeStackTracesEnabledParams) Do(ctx context.Context) (err error)

Do executes DOM.setNodeStackTracesEnabled against the provided context.

func (SetNodeStackTracesEnabledParams) MarshalEasyJSON Uses

func (v SetNodeStackTracesEnabledParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetNodeStackTracesEnabledParams) MarshalJSON Uses

func (v SetNodeStackTracesEnabledParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetNodeStackTracesEnabledParams) UnmarshalEasyJSON Uses

func (v *SetNodeStackTracesEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetNodeStackTracesEnabledParams) UnmarshalJSON Uses

func (v *SetNodeStackTracesEnabledParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetNodeValueParams Uses

type SetNodeValueParams struct {
    NodeID cdp.NodeID `json:"nodeId"` // Id of the node to set value for.
    Value  string     `json:"value"`  // New node's value.
}

SetNodeValueParams sets node value for a node with given id.

func SetNodeValue Uses

func SetNodeValue(nodeID cdp.NodeID, value string) *SetNodeValueParams

SetNodeValue sets node value for a node with given id.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setNodeValue

parameters:

nodeID - Id of the node to set value for.
value - New node's value.

func (*SetNodeValueParams) Do Uses

func (p *SetNodeValueParams) Do(ctx context.Context) (err error)

Do executes DOM.setNodeValue against the provided context.

func (SetNodeValueParams) MarshalEasyJSON Uses

func (v SetNodeValueParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetNodeValueParams) MarshalJSON Uses

func (v SetNodeValueParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetNodeValueParams) UnmarshalEasyJSON Uses

func (v *SetNodeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetNodeValueParams) UnmarshalJSON Uses

func (v *SetNodeValueParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetOuterHTMLParams Uses

type SetOuterHTMLParams struct {
    NodeID    cdp.NodeID `json:"nodeId"`    // Id of the node to set markup for.
    OuterHTML string     `json:"outerHTML"` // Outer HTML markup to set.
}

SetOuterHTMLParams sets node HTML markup, returns new node id.

func SetOuterHTML Uses

func SetOuterHTML(nodeID cdp.NodeID, outerHTML string) *SetOuterHTMLParams

SetOuterHTML sets node HTML markup, returns new node id.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-setOuterHTML

parameters:

nodeID - Id of the node to set markup for.
outerHTML - Outer HTML markup to set.

func (*SetOuterHTMLParams) Do Uses

func (p *SetOuterHTMLParams) Do(ctx context.Context) (err error)

Do executes DOM.setOuterHTML against the provided context.

func (SetOuterHTMLParams) MarshalEasyJSON Uses

func (v SetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetOuterHTMLParams) MarshalJSON Uses

func (v SetOuterHTMLParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetOuterHTMLParams) UnmarshalEasyJSON Uses

func (v *SetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetOuterHTMLParams) UnmarshalJSON Uses

func (v *SetOuterHTMLParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ShapeOutsideInfo Uses

type ShapeOutsideInfo struct {
    Bounds      Quad                  `json:"bounds"`      // Shape bounds
    Shape       []easyjson.RawMessage `json:"shape"`       // Shape coordinate details
    MarginShape []easyjson.RawMessage `json:"marginShape"` // Margin shape bounds
}

ShapeOutsideInfo CSS Shape Outside details.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-ShapeOutsideInfo

func (ShapeOutsideInfo) MarshalEasyJSON Uses

func (v ShapeOutsideInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ShapeOutsideInfo) MarshalJSON Uses

func (v ShapeOutsideInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ShapeOutsideInfo) UnmarshalEasyJSON Uses

func (v *ShapeOutsideInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ShapeOutsideInfo) UnmarshalJSON Uses

func (v *ShapeOutsideInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UndoParams Uses

type UndoParams struct{}

UndoParams undoes the last performed action.

func Undo Uses

func Undo() *UndoParams

Undo undoes the last performed action.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#method-undo

func (*UndoParams) Do Uses

func (p *UndoParams) Do(ctx context.Context) (err error)

Do executes DOM.undo against the provided context.

func (UndoParams) MarshalEasyJSON Uses

func (v UndoParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UndoParams) MarshalJSON Uses

func (v UndoParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UndoParams) UnmarshalEasyJSON Uses

func (v *UndoParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UndoParams) UnmarshalJSON Uses

func (v *UndoParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package dom imports 7 packages (graph) and is imported by 40 packages. Updated 2021-01-06. Refresh now. Tools for package owners.