dom

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CommandDOMCollectClassNamesFromSubtree    = "DOM.collectClassNamesFromSubtree"
	CommandDOMCopyTo                          = "DOM.copyTo"
	CommandDOMDescribeNode                    = "DOM.describeNode"
	CommandDOMScrollIntoViewIfNeeded          = "DOM.scrollIntoViewIfNeeded"
	CommandDOMDisable                         = "DOM.disable"
	CommandDOMDiscardSearchResults            = "DOM.discardSearchResults"
	CommandDOMEnable                          = "DOM.enable"
	CommandDOMFocus                           = "DOM.focus"
	CommandDOMGetAttributes                   = "DOM.getAttributes"
	CommandDOMGetBoxModel                     = "DOM.getBoxModel"
	CommandDOMGetContentQuads                 = "DOM.getContentQuads"
	CommandDOMGetDocument                     = "DOM.getDocument"
	CommandDOMGetFlattenedDocument            = "DOM.getFlattenedDocument"
	CommandDOMGetNodeForLocation              = "DOM.getNodeForLocation"
	CommandDOMGetOuterHTML                    = "DOM.getOuterHTML"
	CommandDOMGetRelayoutBoundary             = "DOM.getRelayoutBoundary"
	CommandDOMGetSearchResults                = "DOM.getSearchResults"
	CommandDOMHideHighlight                   = "DOM.hideHighlight"
	CommandDOMHighlightNode                   = "DOM.highlightNode"
	CommandDOMHighlightRect                   = "DOM.highlightRect"
	CommandDOMMarkUndoableState               = "DOM.markUndoableState"
	CommandDOMMoveTo                          = "DOM.moveTo"
	CommandDOMPerformSearch                   = "DOM.performSearch"
	CommandDOMPushNodeByPathToFrontend        = "DOM.pushNodeByPathToFrontend"
	CommandDOMPushNodesByBackendIdsToFrontend = "DOM.pushNodesByBackendIdsToFrontend"
	CommandDOMQuerySelector                   = "DOM.querySelector"
	CommandDOMQuerySelectorAll                = "DOM.querySelectorAll"
	CommandDOMRedo                            = "DOM.redo"
	CommandDOMRemoveAttribute                 = "DOM.removeAttribute"
	CommandDOMRemoveNode                      = "DOM.removeNode"
	CommandDOMRequestChildNodes               = "DOM.requestChildNodes"
	CommandDOMRequestNode                     = "DOM.requestNode"
	CommandDOMResolveNode                     = "DOM.resolveNode"
	CommandDOMSetAttributeValue               = "DOM.setAttributeValue"
	CommandDOMSetAttributesAsText             = "DOM.setAttributesAsText"
	CommandDOMSetFileInputFiles               = "DOM.setFileInputFiles"
	CommandDOMSetNodeStackTracesEnabled       = "DOM.setNodeStackTracesEnabled"
	CommandDOMGetNodeStackTraces              = "DOM.getNodeStackTraces"
	CommandDOMGetFileInfo                     = "DOM.getFileInfo"
	CommandDOMSetInspectedNode                = "DOM.setInspectedNode"
	CommandDOMSetNodeName                     = "DOM.setNodeName"
	CommandDOMSetNodeValue                    = "DOM.setNodeValue"
	CommandDOMSetOuterHTML                    = "DOM.setOuterHTML"
	CommandDOMUndo                            = "DOM.undo"
	CommandDOMGetFrameOwner                   = "DOM.getFrameOwner"
)
View Source
const (
	EventDOMAttributeModified       = "DOM.attributeModified"
	EventDOMAttributeRemoved        = "DOM.attributeRemoved"
	EventDOMCharacterDataModified   = "DOM.characterDataModified"
	EventDOMChildNodeCountUpdated   = "DOM.childNodeCountUpdated"
	EventDOMChildNodeInserted       = "DOM.childNodeInserted"
	EventDOMChildNodeRemoved        = "DOM.childNodeRemoved"
	EventDOMDistributedNodesUpdated = "DOM.distributedNodesUpdated"
	EventDOMDocumentUpdated         = "DOM.documentUpdated"
	EventDOMInlineStyleInvalidated  = "DOM.inlineStyleInvalidated"
	EventDOMPseudoElementAdded      = "DOM.pseudoElementAdded"
	EventDOMPseudoElementRemoved    = "DOM.pseudoElementRemoved"
	EventDOMSetChildNodes           = "DOM.setChildNodes"
	EventDOMShadowRootPopped        = "DOM.shadowRootPopped"
	EventDOMShadowRootPushed        = "DOM.shadowRootPushed"
)

Variables

Functions

func GetEventReply

func GetEventReply(event string) (json.Unmarshaler, bool)

Types

type AttributeModifiedReply

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

AttributeModifiedReply is the reply for AttributeModified events.

func (*AttributeModifiedReply) GetFrameID

func (a *AttributeModifiedReply) GetFrameID() string

AttributeModifiedReply returns the FrameID for AttributeModified in the DOM domain.

func (*AttributeModifiedReply) MatchFrameID

func (a *AttributeModifiedReply) MatchFrameID(frameID string, m []byte) (bool, error)

AttributeModifiedReply returns whether or not the FrameID matches the reply value for AttributeModified in the DOM domain.

func (*AttributeModifiedReply) UnmarshalJSON

func (a *AttributeModifiedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AttributeModified in the DOM domain.

type AttributeRemovedReply

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

AttributeRemovedReply is the reply for AttributeRemoved events.

func (*AttributeRemovedReply) GetFrameID

func (a *AttributeRemovedReply) GetFrameID() string

AttributeRemovedReply returns the FrameID for AttributeRemoved in the DOM domain.

func (*AttributeRemovedReply) MatchFrameID

func (a *AttributeRemovedReply) MatchFrameID(frameID string, m []byte) (bool, error)

AttributeRemovedReply returns whether or not the FrameID matches the reply value for AttributeRemoved in the DOM domain.

func (*AttributeRemovedReply) UnmarshalJSON

func (a *AttributeRemovedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AttributeRemoved in the DOM domain.

type BackendNode

type BackendNode struct {
	NodeType      int           `json:"nodeType"`      // `Node`'s nodeType.
	NodeName      string        `json:"nodeName"`      // `Node`'s nodeName.
	BackendNodeID BackendNodeID `json:"backendNodeId"` // No description.
}

BackendNode Backend node with a friendly name.

type BackendNodeID

type BackendNodeID int

BackendNodeID Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.

type BoxModel

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        int               `json:"width"`                  // Node width
	Height       int               `json:"height"`                 // Node height
	ShapeOutside *ShapeOutsideInfo `json:"shapeOutside,omitempty"` // Shape outside coordinates
}

BoxModel Box model.

type CharacterDataModifiedReply

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

CharacterDataModifiedReply is the reply for CharacterDataModified events.

func (*CharacterDataModifiedReply) GetFrameID

func (a *CharacterDataModifiedReply) GetFrameID() string

CharacterDataModifiedReply returns the FrameID for CharacterDataModified in the DOM domain.

func (*CharacterDataModifiedReply) MatchFrameID

func (a *CharacterDataModifiedReply) MatchFrameID(frameID string, m []byte) (bool, error)

CharacterDataModifiedReply returns whether or not the FrameID matches the reply value for CharacterDataModified in the DOM domain.

func (*CharacterDataModifiedReply) UnmarshalJSON

func (a *CharacterDataModifiedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CharacterDataModified in the DOM domain.

type ChildNodeCountUpdatedReply

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

ChildNodeCountUpdatedReply is the reply for ChildNodeCountUpdated events.

func (*ChildNodeCountUpdatedReply) GetFrameID

func (a *ChildNodeCountUpdatedReply) GetFrameID() string

ChildNodeCountUpdatedReply returns the FrameID for ChildNodeCountUpdated in the DOM domain.

func (*ChildNodeCountUpdatedReply) MatchFrameID

func (a *ChildNodeCountUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ChildNodeCountUpdatedReply returns whether or not the FrameID matches the reply value for ChildNodeCountUpdated in the DOM domain.

func (*ChildNodeCountUpdatedReply) UnmarshalJSON

func (a *ChildNodeCountUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ChildNodeCountUpdated in the DOM domain.

type ChildNodeInsertedReply

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

ChildNodeInsertedReply is the reply for ChildNodeInserted events.

func (*ChildNodeInsertedReply) GetFrameID

func (a *ChildNodeInsertedReply) GetFrameID() string

ChildNodeInsertedReply returns the FrameID for ChildNodeInserted in the DOM domain.

func (*ChildNodeInsertedReply) MatchFrameID

func (a *ChildNodeInsertedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ChildNodeInsertedReply returns whether or not the FrameID matches the reply value for ChildNodeInserted in the DOM domain.

func (*ChildNodeInsertedReply) UnmarshalJSON

func (a *ChildNodeInsertedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ChildNodeInserted in the DOM domain.

type ChildNodeRemovedReply

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

ChildNodeRemovedReply is the reply for ChildNodeRemoved events.

func (*ChildNodeRemovedReply) GetFrameID

func (a *ChildNodeRemovedReply) GetFrameID() string

ChildNodeRemovedReply returns the FrameID for ChildNodeRemoved in the DOM domain.

func (*ChildNodeRemovedReply) MatchFrameID

func (a *ChildNodeRemovedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ChildNodeRemovedReply returns whether or not the FrameID matches the reply value for ChildNodeRemoved in the DOM domain.

func (*ChildNodeRemovedReply) UnmarshalJSON

func (a *ChildNodeRemovedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ChildNodeRemoved in the DOM domain.

type CollectClassNamesFromSubtreeArgs

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

CollectClassNamesFromSubtreeArgs represents the arguments for CollectClassNamesFromSubtree in the DOM domain.

func (*CollectClassNamesFromSubtreeArgs) MarshalJSON

func (a *CollectClassNamesFromSubtreeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for CollectClassNamesFromSubtree in the DOM domain.

func (*CollectClassNamesFromSubtreeArgs) UnmarshalJSON

func (a *CollectClassNamesFromSubtreeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CollectClassNamesFromSubtree in the DOM domain.

type CollectClassNamesFromSubtreeReply

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

CollectClassNamesFromSubtreeReply represents the return values for CollectClassNamesFromSubtree in the DOM domain.

func (*CollectClassNamesFromSubtreeReply) GetFrameID

func (a *CollectClassNamesFromSubtreeReply) GetFrameID() string

CollectClassNamesFromSubtreeReply returns the FrameID value for CollectClassNamesFromSubtree in the DOM domain.

func (*CollectClassNamesFromSubtreeReply) MatchFrameID

func (a *CollectClassNamesFromSubtreeReply) MatchFrameID(frameID string, m []byte) (bool, error)

CollectClassNamesFromSubtreeReply returns whether or not the FrameID matches the reply value for CollectClassNamesFromSubtree in the DOM domain.

func (*CollectClassNamesFromSubtreeReply) UnmarshalJSON

func (a *CollectClassNamesFromSubtreeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CollectClassNamesFromSubtree in the DOM domain.

type CopyToArgs

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

CopyToArgs represents the arguments for CopyTo in the DOM domain.

func (*CopyToArgs) MarshalJSON

func (a *CopyToArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for CopyTo in the DOM domain.

func (*CopyToArgs) UnmarshalJSON

func (a *CopyToArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CopyTo in the DOM domain.

type CopyToReply

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

CopyToReply represents the return values for CopyTo in the DOM domain.

func (*CopyToReply) GetFrameID

func (a *CopyToReply) GetFrameID() string

CopyToReply returns the FrameID value for CopyTo in the DOM domain.

func (*CopyToReply) MatchFrameID

func (a *CopyToReply) MatchFrameID(frameID string, m []byte) (bool, error)

CopyToReply returns whether or not the FrameID matches the reply value for CopyTo in the DOM domain.

func (*CopyToReply) UnmarshalJSON

func (a *CopyToReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CopyTo in the DOM domain.

type DescribeNodeArgs

type DescribeNodeArgs struct {
	NodeID        NodeID                `json:"nodeId,omitempty"`        // Identifier of the node.
	BackendNodeID BackendNodeID         `json:"backendNodeId,omitempty"` // Identifier of the backend node.
	ObjectID      shared.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node wrapper.
	Depth         int                   `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).
}

DescribeNodeArgs represents the arguments for DescribeNode in the DOM domain.

func (*DescribeNodeArgs) MarshalJSON

func (a *DescribeNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for DescribeNode in the DOM domain.

func (*DescribeNodeArgs) UnmarshalJSON

func (a *DescribeNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DescribeNode in the DOM domain.

type DescribeNodeReply

type DescribeNodeReply struct {
	Node Node `json:"node"` // Node description.
}

DescribeNodeReply represents the return values for DescribeNode in the DOM domain.

func (*DescribeNodeReply) GetFrameID

func (a *DescribeNodeReply) GetFrameID() string

DescribeNodeReply returns the FrameID for DescribeNode in the DOM domain.

func (*DescribeNodeReply) MatchFrameID

func (a *DescribeNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

DescribeNodeReply returns whether or not the FrameID matches the reply value for DescribeNode in the DOM domain.

func (*DescribeNodeReply) UnmarshalJSON

func (a *DescribeNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DescribeNode in the DOM domain.

type DisableArgs

type DisableArgs struct {
}

DisableArgs represents the arguments for Disable in the DOM domain.

func (*DisableArgs) MarshalJSON

func (a *DisableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Disable in the DOM domain.

func (*DisableArgs) UnmarshalJSON

func (a *DisableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the DOM domain.

type DisableReply

type DisableReply struct {
}

DisableReply represents the return values for Disable in the DOM domain.

func (*DisableReply) GetFrameID

func (a *DisableReply) GetFrameID() string

DisableReply returns the FrameID value for Disable in the DOM domain.

func (*DisableReply) MatchFrameID

func (a *DisableReply) MatchFrameID(frameID string, m []byte) (bool, error)

DisableReply returns whether or not the FrameID matches the reply value for Disable in the DOM domain.

func (*DisableReply) UnmarshalJSON

func (a *DisableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the DOM domain.

type DiscardSearchResultsArgs

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

DiscardSearchResultsArgs represents the arguments for DiscardSearchResults in the DOM domain.

func (*DiscardSearchResultsArgs) MarshalJSON

func (a *DiscardSearchResultsArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for DiscardSearchResults in the DOM domain.

func (*DiscardSearchResultsArgs) UnmarshalJSON

func (a *DiscardSearchResultsArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DiscardSearchResults in the DOM domain.

type DiscardSearchResultsReply

type DiscardSearchResultsReply struct {
}

DiscardSearchResultsReply represents the return values for DiscardSearchResults in the DOM domain.

func (*DiscardSearchResultsReply) GetFrameID

func (a *DiscardSearchResultsReply) GetFrameID() string

DiscardSearchResultsReply returns the FrameID value for DiscardSearchResults in the DOM domain.

func (*DiscardSearchResultsReply) MatchFrameID

func (a *DiscardSearchResultsReply) MatchFrameID(frameID string, m []byte) (bool, error)

DiscardSearchResultsReply returns whether or not the FrameID matches the reply value for DiscardSearchResults in the DOM domain.

func (*DiscardSearchResultsReply) UnmarshalJSON

func (a *DiscardSearchResultsReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DiscardSearchResults in the DOM domain.

type DistributedNodesUpdatedReply

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

DistributedNodesUpdatedReply is the reply for DistributedNodesUpdated events.

func (*DistributedNodesUpdatedReply) GetFrameID

func (a *DistributedNodesUpdatedReply) GetFrameID() string

DistributedNodesUpdatedReply returns the FrameID for DistributedNodesUpdated in the DOM domain.

func (*DistributedNodesUpdatedReply) MatchFrameID

func (a *DistributedNodesUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

DistributedNodesUpdatedReply returns whether or not the FrameID matches the reply value for DistributedNodesUpdated in the DOM domain.

func (*DistributedNodesUpdatedReply) UnmarshalJSON

func (a *DistributedNodesUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DistributedNodesUpdated in the DOM domain.

type DocumentUpdatedReply

type DocumentUpdatedReply struct {
}

DocumentUpdatedReply is the reply for DocumentUpdated events.

func (*DocumentUpdatedReply) GetFrameID

func (a *DocumentUpdatedReply) GetFrameID() string

DocumentUpdatedReply returns the FrameID for DocumentUpdated in the DOM domain.

func (*DocumentUpdatedReply) MatchFrameID

func (a *DocumentUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

DocumentUpdatedReply returns whether or not the FrameID matches the reply value for DocumentUpdated in the DOM domain.

func (*DocumentUpdatedReply) UnmarshalJSON

func (a *DocumentUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DocumentUpdated in the DOM domain.

type EnableArgs

type EnableArgs struct {
}

EnableArgs represents the arguments for Enable in the DOM domain.

func (*EnableArgs) MarshalJSON

func (a *EnableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Enable in the DOM domain.

func (*EnableArgs) UnmarshalJSON

func (a *EnableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the DOM domain.

type EnableReply

type EnableReply struct {
}

EnableReply represents the return values for Enable in the DOM domain.

func (*EnableReply) GetFrameID

func (a *EnableReply) GetFrameID() string

EnableReply returns the FrameID value for Enable in the DOM domain.

func (*EnableReply) MatchFrameID

func (a *EnableReply) MatchFrameID(frameID string, m []byte) (bool, error)

EnableReply returns whether or not the FrameID matches the reply value for Enable in the DOM domain.

func (*EnableReply) UnmarshalJSON

func (a *EnableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the DOM domain.

type FocusArgs

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

FocusArgs represents the arguments for Focus in the DOM domain.

func (*FocusArgs) MarshalJSON

func (a *FocusArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Focus in the DOM domain.

func (*FocusArgs) UnmarshalJSON

func (a *FocusArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Focus in the DOM domain.

type FocusReply

type FocusReply struct {
}

FocusReply represents the return values for Focus in the DOM domain.

func (*FocusReply) GetFrameID

func (a *FocusReply) GetFrameID() string

FocusReply returns the FrameID value for Focus in the DOM domain.

func (*FocusReply) MatchFrameID

func (a *FocusReply) MatchFrameID(frameID string, m []byte) (bool, error)

FocusReply returns whether or not the FrameID matches the reply value for Focus in the DOM domain.

func (*FocusReply) UnmarshalJSON

func (a *FocusReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Focus in the DOM domain.

type GetAttributesArgs

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

GetAttributesArgs represents the arguments for GetAttributes in the DOM domain.

func (*GetAttributesArgs) MarshalJSON

func (a *GetAttributesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetAttributes in the DOM domain.

func (*GetAttributesArgs) UnmarshalJSON

func (a *GetAttributesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetAttributes in the DOM domain.

type GetAttributesReply

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

GetAttributesReply represents the return values for GetAttributes in the DOM domain.

func (*GetAttributesReply) GetFrameID

func (a *GetAttributesReply) GetFrameID() string

GetAttributesReply returns the FrameID value for GetAttributes in the DOM domain.

func (*GetAttributesReply) MatchFrameID

func (a *GetAttributesReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetAttributesReply returns whether or not the FrameID matches the reply value for GetAttributes in the DOM domain.

func (*GetAttributesReply) UnmarshalJSON

func (a *GetAttributesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetAttributes in the DOM domain.

type GetBoxModelArgs

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

GetBoxModelArgs represents the arguments for GetBoxModel in the DOM domain.

func (*GetBoxModelArgs) MarshalJSON

func (a *GetBoxModelArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetBoxModel in the DOM domain.

func (*GetBoxModelArgs) UnmarshalJSON

func (a *GetBoxModelArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetBoxModel in the DOM domain.

type GetBoxModelReply

type GetBoxModelReply struct {
	Model BoxModel `json:"model"` // Box model for the node.
}

GetBoxModelReply represents the return values for GetBoxModel in the DOM domain.

func (*GetBoxModelReply) GetFrameID

func (a *GetBoxModelReply) GetFrameID() string

GetBoxModelReply returns the FrameID value for GetBoxModel in the DOM domain.

func (*GetBoxModelReply) MatchFrameID

func (a *GetBoxModelReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetBoxModelReply returns whether or not the FrameID matches the reply value for GetBoxModel in the DOM domain.

func (*GetBoxModelReply) UnmarshalJSON

func (a *GetBoxModelReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetBoxModel in the DOM domain.

type GetContentQuadsArgs

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

GetContentQuadsArgs represents the arguments for GetContentQuads in the DOM domain.

func (*GetContentQuadsArgs) MarshalJSON

func (a *GetContentQuadsArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetContentQuads in the DOM domain.

func (*GetContentQuadsArgs) UnmarshalJSON

func (a *GetContentQuadsArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetContentQuads in the DOM domain.

type GetContentQuadsReply

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

GetContentQuadsReply represents the return values for GetContentQuads in the DOM domain.

func (*GetContentQuadsReply) GetFrameID

func (a *GetContentQuadsReply) GetFrameID() string

GetContentQuadsReply returns the FrameID value for GetContentQuads in the DOM domain.

func (*GetContentQuadsReply) MatchFrameID

func (a *GetContentQuadsReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetContentQuadsReply returns whether or not the FrameID matches the reply value for GetContentQuads in the DOM domain.

func (*GetContentQuadsReply) UnmarshalJSON

func (a *GetContentQuadsReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetContentQuads in the DOM domain.

type GetDocumentArgs

type GetDocumentArgs struct {
	Depth  int  `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).
}

GetDocumentArgs represents the arguments for GetDocument in the DOM domain.

func (*GetDocumentArgs) MarshalJSON

func (a *GetDocumentArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetDocument in the DOM domain.

func (*GetDocumentArgs) UnmarshalJSON

func (a *GetDocumentArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetDocument in the DOM domain.

type GetDocumentReply

type GetDocumentReply struct {
	Root Node `json:"root"` // Resulting node.
}

GetDocumentReply represents the return values for GetDocument in the DOM domain.

func (*GetDocumentReply) GetFrameID

func (a *GetDocumentReply) GetFrameID() string

GetDocumentReply returns the FrameID value for GetDocument in the DOM domain.

func (*GetDocumentReply) MatchFrameID

func (a *GetDocumentReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetDocumentReply returns whether or not the FrameID matches the reply value for GetDocument in the DOM domain.

func (*GetDocumentReply) UnmarshalJSON

func (a *GetDocumentReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetDocument in the DOM domain.

type GetFileInfoArgs

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

GetFileInfoArgs represents the arguments for GetFileInfo in the DOM domain.

func (*GetFileInfoArgs) MarshalJSON

func (a *GetFileInfoArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetFileInfo in the DOM domain.

func (*GetFileInfoArgs) UnmarshalJSON

func (a *GetFileInfoArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetFileInfo in the DOM domain.

type GetFileInfoReply

type GetFileInfoReply struct {
	Path string `json:"path"` // No description.
}

GetFileInfoReply represents the return values for GetFileInfo in the DOM domain.

func (*GetFileInfoReply) GetFrameID

func (a *GetFileInfoReply) GetFrameID() string

GetFileInfoReply returns the FrameID value for GetFileInfo in the DOM domain.

func (*GetFileInfoReply) MatchFrameID

func (a *GetFileInfoReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetFileInfoReply returns whether or not the FrameID matches the reply value for GetFileInfo in the DOM domain.

func (*GetFileInfoReply) UnmarshalJSON

func (a *GetFileInfoReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetFileInfo in the DOM domain.

type GetFlattenedDocumentArgs

type GetFlattenedDocumentArgs struct {
	Depth  int  `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).
}

GetFlattenedDocumentArgs represents the arguments for GetFlattenedDocument in the DOM domain.

func (*GetFlattenedDocumentArgs) MarshalJSON

func (a *GetFlattenedDocumentArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetFlattenedDocument in the DOM domain.

func (*GetFlattenedDocumentArgs) UnmarshalJSON

func (a *GetFlattenedDocumentArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetFlattenedDocument in the DOM domain.

type GetFlattenedDocumentReply

type GetFlattenedDocumentReply struct {
	Nodes []Node `json:"nodes"` // Resulting node.
}

GetFlattenedDocumentReply represents the return values for GetFlattenedDocument in the DOM domain.

func (*GetFlattenedDocumentReply) GetFrameID

func (a *GetFlattenedDocumentReply) GetFrameID() string

GetFlattenedDocumentReply returns the FrameID for GetFlattenedDocument in the DOM domain.

func (*GetFlattenedDocumentReply) MatchFrameID

func (a *GetFlattenedDocumentReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetFlattenedDocumentReply returns whether or not the FrameID matches the reply value for GetFlattenedDocument in the DOM domain.

func (*GetFlattenedDocumentReply) UnmarshalJSON

func (a *GetFlattenedDocumentReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetFlattenedDocument in the DOM domain.

type GetFrameOwnerArgs

type GetFrameOwnerArgs struct {
	FrameID shared.FrameID `json:"frameId"` // No description.
}

GetFrameOwnerArgs represents the arguments for GetFrameOwner in the DOM domain.

func (*GetFrameOwnerArgs) MarshalJSON

func (a *GetFrameOwnerArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetFrameOwner in the DOM domain.

func (*GetFrameOwnerArgs) UnmarshalJSON

func (a *GetFrameOwnerArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetFrameOwner in the DOM domain.

type GetFrameOwnerReply

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

GetFrameOwnerReply represents the return values for GetFrameOwner in the DOM domain.

func (*GetFrameOwnerReply) GetFrameID

func (a *GetFrameOwnerReply) GetFrameID() string

GetFrameOwnerReply returns the FrameID value for GetFrameOwner in the DOM domain.

func (*GetFrameOwnerReply) MatchFrameID

func (a *GetFrameOwnerReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetFrameOwnerReply returns whether or not the FrameID matches the reply value for GetFrameOwner in the DOM domain.

func (*GetFrameOwnerReply) UnmarshalJSON

func (a *GetFrameOwnerReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetFrameOwner in the DOM domain.

type GetNodeForLocationArgs

type GetNodeForLocationArgs struct {
	X                         int  `json:"x"`                                   // X coordinate.
	Y                         int  `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.
}

GetNodeForLocationArgs represents the arguments for GetNodeForLocation in the DOM domain.

func (*GetNodeForLocationArgs) MarshalJSON

func (a *GetNodeForLocationArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetNodeForLocation in the DOM domain.

func (*GetNodeForLocationArgs) UnmarshalJSON

func (a *GetNodeForLocationArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetNodeForLocation in the DOM domain.

type GetNodeForLocationReply

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

GetNodeForLocationReply represents the return values for GetNodeForLocation in the DOM domain.

func (*GetNodeForLocationReply) GetFrameID

func (a *GetNodeForLocationReply) GetFrameID() string

GetNodeForLocationReply returns the FrameID for GetNodeForLocation in the DOM domain.

func (*GetNodeForLocationReply) MatchFrameID

func (a *GetNodeForLocationReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetNodeForLocationReply returns whether or not the FrameID matches the reply value for GetNodeForLocation in the DOM domain.

func (*GetNodeForLocationReply) UnmarshalJSON

func (a *GetNodeForLocationReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetNodeForLocation in the DOM domain.

type GetNodeStackTracesArgs

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

GetNodeStackTracesArgs represents the arguments for GetNodeStackTraces in the DOM domain.

func (*GetNodeStackTracesArgs) MarshalJSON

func (a *GetNodeStackTracesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetNodeStackTraces in the DOM domain.

func (*GetNodeStackTracesArgs) UnmarshalJSON

func (a *GetNodeStackTracesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetNodeStackTraces in the DOM domain.

type GetNodeStackTracesReply

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

GetNodeStackTracesReply represents the return values for GetNodeStackTraces in the DOM domain.

func (*GetNodeStackTracesReply) GetFrameID

func (a *GetNodeStackTracesReply) GetFrameID() string

GetNodeStackTracesReply returns the FrameID value for GetNodeStackTraces in the DOM domain.

func (*GetNodeStackTracesReply) MatchFrameID

func (a *GetNodeStackTracesReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetNodeStackTracesReply returns whether or not the FrameID matches the reply value for GetNodeStackTraces in the DOM domain.

func (*GetNodeStackTracesReply) UnmarshalJSON

func (a *GetNodeStackTracesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetNodeStackTraces in the DOM domain.

type GetOuterHTMLArgs

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

GetOuterHTMLArgs represents the arguments for GetOuterHTML in the DOM domain.

func (*GetOuterHTMLArgs) MarshalJSON

func (a *GetOuterHTMLArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetOuterHTML in the DOM domain.

func (*GetOuterHTMLArgs) UnmarshalJSON

func (a *GetOuterHTMLArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetOuterHTML in the DOM domain.

type GetOuterHTMLReply

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

GetOuterHTMLReply represents the return values for GetOuterHTML in the DOM domain.

func (*GetOuterHTMLReply) GetFrameID

func (a *GetOuterHTMLReply) GetFrameID() string

GetOuterHTMLReply returns the FrameID value for GetOuterHTML in the DOM domain.

func (*GetOuterHTMLReply) MatchFrameID

func (a *GetOuterHTMLReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetOuterHTMLReply returns whether or not the FrameID matches the reply value for GetOuterHTML in the DOM domain.

func (*GetOuterHTMLReply) UnmarshalJSON

func (a *GetOuterHTMLReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetOuterHTML in the DOM domain.

type GetRelayoutBoundaryArgs

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

GetRelayoutBoundaryArgs represents the arguments for GetRelayoutBoundary in the DOM domain.

func (*GetRelayoutBoundaryArgs) MarshalJSON

func (a *GetRelayoutBoundaryArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetRelayoutBoundary in the DOM domain.

func (*GetRelayoutBoundaryArgs) UnmarshalJSON

func (a *GetRelayoutBoundaryArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetRelayoutBoundary in the DOM domain.

type GetRelayoutBoundaryReply

type GetRelayoutBoundaryReply struct {
	NodeID NodeID `json:"nodeId"` // Relayout boundary node id for the given node.
}

GetRelayoutBoundaryReply represents the return values for GetRelayoutBoundary in the DOM domain.

func (*GetRelayoutBoundaryReply) GetFrameID

func (a *GetRelayoutBoundaryReply) GetFrameID() string

GetRelayoutBoundaryReply returns the FrameID value for GetRelayoutBoundary in the DOM domain.

func (*GetRelayoutBoundaryReply) MatchFrameID

func (a *GetRelayoutBoundaryReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetRelayoutBoundaryReply returns whether or not the FrameID matches the reply value for GetRelayoutBoundary in the DOM domain.

func (*GetRelayoutBoundaryReply) UnmarshalJSON

func (a *GetRelayoutBoundaryReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetRelayoutBoundary in the DOM domain.

type GetSearchResultsArgs

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

GetSearchResultsArgs represents the arguments for GetSearchResults in the DOM domain.

func (*GetSearchResultsArgs) MarshalJSON

func (a *GetSearchResultsArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetSearchResults in the DOM domain.

func (*GetSearchResultsArgs) UnmarshalJSON

func (a *GetSearchResultsArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetSearchResults in the DOM domain.

type GetSearchResultsReply

type GetSearchResultsReply struct {
	NodeIDs []NodeID `json:"nodeIds"` // Ids of the search result nodes.
}

GetSearchResultsReply represents the return values for GetSearchResults in the DOM domain.

func (*GetSearchResultsReply) GetFrameID

func (a *GetSearchResultsReply) GetFrameID() string

GetSearchResultsReply returns the FrameID value for GetSearchResults in the DOM domain.

func (*GetSearchResultsReply) MatchFrameID

func (a *GetSearchResultsReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetSearchResultsReply returns whether or not the FrameID matches the reply value for GetSearchResults in the DOM domain.

func (*GetSearchResultsReply) UnmarshalJSON

func (a *GetSearchResultsReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetSearchResults in the DOM domain.

type InlineStyleInvalidatedReply

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

InlineStyleInvalidatedReply is the reply for InlineStyleInvalidated events.

func (*InlineStyleInvalidatedReply) GetFrameID

func (a *InlineStyleInvalidatedReply) GetFrameID() string

InlineStyleInvalidatedReply returns the FrameID for InlineStyleInvalidated in the DOM domain.

func (*InlineStyleInvalidatedReply) MatchFrameID

func (a *InlineStyleInvalidatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

InlineStyleInvalidatedReply returns whether or not the FrameID matches the reply value for InlineStyleInvalidated in the DOM domain.

func (*InlineStyleInvalidatedReply) UnmarshalJSON

func (a *InlineStyleInvalidatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for InlineStyleInvalidated in the DOM domain.

type MarkUndoableStateArgs

type MarkUndoableStateArgs struct {
}

MarkUndoableStateArgs represents the arguments for MarkUndoableState in the DOM domain.

func (*MarkUndoableStateArgs) MarshalJSON

func (a *MarkUndoableStateArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for MarkUndoableState in the DOM domain.

func (*MarkUndoableStateArgs) UnmarshalJSON

func (a *MarkUndoableStateArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for MarkUndoableState in the DOM domain.

type MarkUndoableStateReply

type MarkUndoableStateReply struct {
}

MarkUndoableStateReply represents the return values for MarkUndoableState in the DOM domain.

func (*MarkUndoableStateReply) GetFrameID

func (a *MarkUndoableStateReply) GetFrameID() string

MarkUndoableStateReply returns the FrameID value for MarkUndoableState in the DOM domain.

func (*MarkUndoableStateReply) MatchFrameID

func (a *MarkUndoableStateReply) MatchFrameID(frameID string, m []byte) (bool, error)

MarkUndoableStateReply returns whether or not the FrameID matches the reply value for MarkUndoableState in the DOM domain.

func (*MarkUndoableStateReply) UnmarshalJSON

func (a *MarkUndoableStateReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for MarkUndoableState in the DOM domain.

type MoveToArgs

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

MoveToArgs represents the arguments for MoveTo in the DOM domain.

func (*MoveToArgs) MarshalJSON

func (a *MoveToArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for MoveTo in the DOM domain.

func (*MoveToArgs) UnmarshalJSON

func (a *MoveToArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for MoveTo in the DOM domain.

type MoveToReply

type MoveToReply struct {
	NodeID NodeID `json:"nodeId"` // New id of the moved node.
}

MoveToReply represents the return values for MoveTo in the DOM domain.

func (*MoveToReply) GetFrameID

func (a *MoveToReply) GetFrameID() string

MoveToReply returns the FrameID value for MoveTo in the DOM domain.

func (*MoveToReply) MatchFrameID

func (a *MoveToReply) MatchFrameID(frameID string, m []byte) (bool, error)

MoveToReply returns whether or not the FrameID matches the reply value for MoveTo in the DOM domain.

func (*MoveToReply) UnmarshalJSON

func (a *MoveToReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for MoveTo in the DOM domain.

type Node

type Node struct {
	NodeID           NodeID          `json:"nodeId"`                     // Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend will only push node with given `id` once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
	ParentID         NodeID          `json:"parentId,omitempty"`         // The id of the parent node if any.
	BackendNodeID    BackendNodeID   `json:"backendNodeId"`              // The BackendNodeId for this node.
	NodeType         int             `json:"nodeType"`                   // `Node`'s nodeType.
	NodeName         string          `json:"nodeName"`                   // `Node`'s nodeName.
	LocalName        string          `json:"localName"`                  // `Node`'s localName.
	NodeValue        string          `json:"nodeValue"`                  // `Node`'s nodeValue.
	ChildNodeCount   int             `json:"childNodeCount,omitempty"`   // Child count for `Container` nodes.
	Children         *[]Node         `json:"children,omitempty"`         // Child nodes of this node when requested with children.
	Attributes       *[]string       `json:"attributes,omitempty"`       // Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
	DocumentURL      string          `json:"documentURL,omitempty"`      // Document URL that `Document` or `FrameOwner` node points to.
	BaseURL          string          `json:"baseURL,omitempty"`          // Base URL that `Document` or `FrameOwner` node uses for URL completion.
	PublicID         string          `json:"publicId,omitempty"`         // `DocumentType`'s publicId.
	SystemID         string          `json:"systemId,omitempty"`         // `DocumentType`'s systemId.
	InternalSubset   string          `json:"internalSubset,omitempty"`   // `DocumentType`'s internalSubset.
	XMLVersion       string          `json:"xmlVersion,omitempty"`       // `Document`'s XML version in case of XML documents.
	Name             string          `json:"name,omitempty"`             // `Attr`'s name.
	Value            string          `json:"value,omitempty"`            // `Attr`'s value.
	PseudoType       *PseudoType     `json:"pseudoType,omitempty"`       // Pseudo element type for this node.
	ShadowRootType   *ShadowRootType `json:"shadowRootType,omitempty"`   // Shadow root type.
	FrameID          shared.FrameID  `json:"frameId,omitempty"`          // Frame ID for frame owner elements.
	ContentDocument  *Node           `json:"contentDocument,omitempty"`  // Content document for frame owner elements.
	ShadowRoots      *[]Node         `json:"shadowRoots,omitempty"`      // Shadow root list for given element host.
	TemplateContent  *Node           `json:"templateContent,omitempty"`  // Content document fragment for template elements.
	PseudoElements   *[]Node         `json:"pseudoElements,omitempty"`   // Pseudo elements associated with this node.
	ImportedDocument *Node           `json:"importedDocument,omitempty"` // Import document for the HTMLImport links.
	DistributedNodes *[]BackendNode  `json:"distributedNodes,omitempty"` // Distributed nodes for given insertion point.
	IsSVG            bool            `json:"isSVG,omitempty"`            // Whether the node is SVG.
}

Node DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.

type NodeID

type NodeID int

NodeID Unique DOM node identifier.

type PerformSearchArgs

type PerformSearchArgs 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.
}

PerformSearchArgs represents the arguments for PerformSearch in the DOM domain.

func (*PerformSearchArgs) MarshalJSON

func (a *PerformSearchArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for PerformSearch in the DOM domain.

func (*PerformSearchArgs) UnmarshalJSON

func (a *PerformSearchArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PerformSearch in the DOM domain.

type PerformSearchReply

type PerformSearchReply struct {
	SearchID    string `json:"searchId"`    // Unique search session identifier.
	ResultCount int    `json:"resultCount"` // Number of search results.
}

PerformSearchReply represents the return values for PerformSearch in the DOM domain.

func (*PerformSearchReply) GetFrameID

func (a *PerformSearchReply) GetFrameID() string

PerformSearchReply returns the FrameID value for PerformSearch in the DOM domain.

func (*PerformSearchReply) MatchFrameID

func (a *PerformSearchReply) MatchFrameID(frameID string, m []byte) (bool, error)

PerformSearchReply returns whether or not the FrameID matches the reply value for PerformSearch in the DOM domain.

func (*PerformSearchReply) UnmarshalJSON

func (a *PerformSearchReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PerformSearch in the DOM domain.

type PseudoElementAddedReply

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

PseudoElementAddedReply is the reply for PseudoElementAdded events.

func (*PseudoElementAddedReply) GetFrameID

func (a *PseudoElementAddedReply) GetFrameID() string

PseudoElementAddedReply returns the FrameID for PseudoElementAdded in the DOM domain.

func (*PseudoElementAddedReply) MatchFrameID

func (a *PseudoElementAddedReply) MatchFrameID(frameID string, m []byte) (bool, error)

PseudoElementAddedReply returns whether or not the FrameID matches the reply value for PseudoElementAdded in the DOM domain.

func (*PseudoElementAddedReply) UnmarshalJSON

func (a *PseudoElementAddedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PseudoElementAdded in the DOM domain.

type PseudoElementRemovedReply

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

PseudoElementRemovedReply is the reply for PseudoElementRemoved events.

func (*PseudoElementRemovedReply) GetFrameID

func (a *PseudoElementRemovedReply) GetFrameID() string

PseudoElementRemovedReply returns the FrameID for PseudoElementRemoved in the DOM domain.

func (*PseudoElementRemovedReply) MatchFrameID

func (a *PseudoElementRemovedReply) MatchFrameID(frameID string, m []byte) (bool, error)

PseudoElementRemovedReply returns whether or not the FrameID matches the reply value for PseudoElementRemoved in the DOM domain.

func (*PseudoElementRemovedReply) UnmarshalJSON

func (a *PseudoElementRemovedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PseudoElementRemoved in the DOM domain.

type PseudoType

type PseudoType string

PseudoType Pseudo element type.

const (
	PseudoTypeNotSet              PseudoType = ""
	PseudoTypeFirstLine           PseudoType = "first-line"
	PseudoTypeFirstLetter         PseudoType = "first-letter"
	PseudoTypeBefore              PseudoType = "before"
	PseudoTypeAfter               PseudoType = "after"
	PseudoTypeMarker              PseudoType = "marker"
	PseudoTypeBackdrop            PseudoType = "backdrop"
	PseudoTypeSelection           PseudoType = "selection"
	PseudoTypeFirstLineInherited  PseudoType = "first-line-inherited"
	PseudoTypeScrollbar           PseudoType = "scrollbar"
	PseudoTypeScrollbarThumb      PseudoType = "scrollbar-thumb"
	PseudoTypeScrollbarButton     PseudoType = "scrollbar-button"
	PseudoTypeScrollbarTrack      PseudoType = "scrollbar-track"
	PseudoTypeScrollbarTrackPiece PseudoType = "scrollbar-track-piece"
	PseudoTypeScrollbarCorner     PseudoType = "scrollbar-corner"
	PseudoTypeResizer             PseudoType = "resizer"
	PseudoTypeInputListButton     PseudoType = "input-list-button"
)

PseudoType as enums.

func (PseudoType) String

func (e PseudoType) String() string

func (PseudoType) Valid

func (e PseudoType) Valid() bool

type PushNodeByPathToFrontendArgs

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

PushNodeByPathToFrontendArgs represents the arguments for PushNodeByPathToFrontend in the DOM domain.

func (*PushNodeByPathToFrontendArgs) MarshalJSON

func (a *PushNodeByPathToFrontendArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for PushNodeByPathToFrontend in the DOM domain.

func (*PushNodeByPathToFrontendArgs) UnmarshalJSON

func (a *PushNodeByPathToFrontendArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PushNodeByPathToFrontend in the DOM domain.

type PushNodeByPathToFrontendReply

type PushNodeByPathToFrontendReply struct {
	NodeID NodeID `json:"nodeId"` // Id of the node for given path.
}

PushNodeByPathToFrontendReply represents the return values for PushNodeByPathToFrontend in the DOM domain.

func (*PushNodeByPathToFrontendReply) GetFrameID

func (a *PushNodeByPathToFrontendReply) GetFrameID() string

PushNodeByPathToFrontendReply returns the FrameID value for PushNodeByPathToFrontend in the DOM domain.

func (*PushNodeByPathToFrontendReply) MatchFrameID

func (a *PushNodeByPathToFrontendReply) MatchFrameID(frameID string, m []byte) (bool, error)

PushNodeByPathToFrontendReply returns whether or not the FrameID matches the reply value for PushNodeByPathToFrontend in the DOM domain.

func (*PushNodeByPathToFrontendReply) UnmarshalJSON

func (a *PushNodeByPathToFrontendReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PushNodeByPathToFrontend in the DOM domain.

type PushNodesByBackendIdsToFrontendArgs

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

PushNodesByBackendIdsToFrontendArgs represents the arguments for PushNodesByBackendIdsToFrontend in the DOM domain.

func (*PushNodesByBackendIdsToFrontendArgs) MarshalJSON

func (a *PushNodesByBackendIdsToFrontendArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for PushNodesByBackendIdsToFrontend in the DOM domain.

func (*PushNodesByBackendIdsToFrontendArgs) UnmarshalJSON

func (a *PushNodesByBackendIdsToFrontendArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PushNodesByBackendIdsToFrontend in the DOM domain.

type PushNodesByBackendIdsToFrontendReply

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

PushNodesByBackendIdsToFrontendReply represents the return values for PushNodesByBackendIdsToFrontend in the DOM domain.

func (*PushNodesByBackendIdsToFrontendReply) GetFrameID

PushNodesByBackendIdsToFrontendReply returns the FrameID value for PushNodesByBackendIdsToFrontend in the DOM domain.

func (*PushNodesByBackendIdsToFrontendReply) MatchFrameID

func (a *PushNodesByBackendIdsToFrontendReply) MatchFrameID(frameID string, m []byte) (bool, error)

PushNodesByBackendIdsToFrontendReply returns whether or not the FrameID matches the reply value for PushNodesByBackendIdsToFrontend in the DOM domain.

func (*PushNodesByBackendIdsToFrontendReply) UnmarshalJSON

func (a *PushNodesByBackendIdsToFrontendReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for PushNodesByBackendIdsToFrontend in the DOM domain.

type Quad

type Quad []float64

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

type QuerySelectorAllArgs

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

QuerySelectorAllArgs represents the arguments for QuerySelectorAll in the DOM domain.

func (*QuerySelectorAllArgs) MarshalJSON

func (a *QuerySelectorAllArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for QuerySelectorAll in the DOM domain.

func (*QuerySelectorAllArgs) UnmarshalJSON

func (a *QuerySelectorAllArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for QuerySelectorAll in the DOM domain.

type QuerySelectorAllReply

type QuerySelectorAllReply struct {
	NodeIDs []NodeID `json:"nodeIds"` // Query selector result.
}

QuerySelectorAllReply represents the return values for QuerySelectorAll in the DOM domain.

func (*QuerySelectorAllReply) GetFrameID

func (a *QuerySelectorAllReply) GetFrameID() string

QuerySelectorAllReply returns the FrameID value for QuerySelectorAll in the DOM domain.

func (*QuerySelectorAllReply) MatchFrameID

func (a *QuerySelectorAllReply) MatchFrameID(frameID string, m []byte) (bool, error)

QuerySelectorAllReply returns whether or not the FrameID matches the reply value for QuerySelectorAll in the DOM domain.

func (*QuerySelectorAllReply) UnmarshalJSON

func (a *QuerySelectorAllReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for QuerySelectorAll in the DOM domain.

type QuerySelectorArgs

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

QuerySelectorArgs represents the arguments for QuerySelector in the DOM domain.

func (*QuerySelectorArgs) MarshalJSON

func (a *QuerySelectorArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for QuerySelector in the DOM domain.

func (*QuerySelectorArgs) UnmarshalJSON

func (a *QuerySelectorArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for QuerySelector in the DOM domain.

type QuerySelectorReply

type QuerySelectorReply struct {
	NodeID NodeID `json:"nodeId"` // Query selector result.
}

QuerySelectorReply represents the return values for QuerySelector in the DOM domain.

func (*QuerySelectorReply) GetFrameID

func (a *QuerySelectorReply) GetFrameID() string

QuerySelectorReply returns the FrameID value for QuerySelector in the DOM domain.

func (*QuerySelectorReply) MatchFrameID

func (a *QuerySelectorReply) MatchFrameID(frameID string, m []byte) (bool, error)

QuerySelectorReply returns whether or not the FrameID matches the reply value for QuerySelector in the DOM domain.

func (*QuerySelectorReply) UnmarshalJSON

func (a *QuerySelectorReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for QuerySelector in the DOM domain.

type RGBA

type RGBA struct {
	R int     `json:"r"`           // The red component, in the [0-255] range.
	G int     `json:"g"`           // The green component, in the [0-255] range.
	B int     `json:"b"`           // The blue component, in the [0-255] range.
	A float64 `json:"a,omitempty"` // The alpha component, in the [0-1] range (default: 1).
}

RGBA A structure holding an RGBA color.

type Rect

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.

type RedoArgs

type RedoArgs struct {
}

RedoArgs represents the arguments for Redo in the DOM domain.

func (*RedoArgs) MarshalJSON

func (a *RedoArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Redo in the DOM domain.

func (*RedoArgs) UnmarshalJSON

func (a *RedoArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Redo in the DOM domain.

type RedoReply

type RedoReply struct {
}

RedoReply represents the return values for Redo in the DOM domain.

func (*RedoReply) GetFrameID

func (a *RedoReply) GetFrameID() string

RedoReply returns the FrameID value for Redo in the DOM domain.

func (*RedoReply) MatchFrameID

func (a *RedoReply) MatchFrameID(frameID string, m []byte) (bool, error)

RedoReply returns whether or not the FrameID matches the reply value for Redo in the DOM domain.

func (*RedoReply) UnmarshalJSON

func (a *RedoReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Redo in the DOM domain.

type RemoveAttributeArgs

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

RemoveAttributeArgs represents the arguments for RemoveAttribute in the DOM domain.

func (*RemoveAttributeArgs) MarshalJSON

func (a *RemoveAttributeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RemoveAttribute in the DOM domain.

func (*RemoveAttributeArgs) UnmarshalJSON

func (a *RemoveAttributeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveAttribute in the DOM domain.

type RemoveAttributeReply

type RemoveAttributeReply struct {
}

RemoveAttributeReply represents the return values for RemoveAttribute in the DOM domain.

func (*RemoveAttributeReply) GetFrameID

func (a *RemoveAttributeReply) GetFrameID() string

RemoveAttributeReply returns the FrameID value for RemoveAttribute in the DOM domain.

func (*RemoveAttributeReply) MatchFrameID

func (a *RemoveAttributeReply) MatchFrameID(frameID string, m []byte) (bool, error)

RemoveAttributeReply returns whether or not the FrameID matches the reply value for RemoveAttribute in the DOM domain.

func (*RemoveAttributeReply) UnmarshalJSON

func (a *RemoveAttributeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveAttribute in the DOM domain.

type RemoveNodeArgs

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

RemoveNodeArgs represents the arguments for RemoveNode in the DOM domain.

func (*RemoveNodeArgs) MarshalJSON

func (a *RemoveNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RemoveNode in the DOM domain.

func (*RemoveNodeArgs) UnmarshalJSON

func (a *RemoveNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveNode in the DOM domain.

type RemoveNodeReply

type RemoveNodeReply struct {
}

RemoveNodeReply represents the return values for RemoveNode in the DOM domain.

func (*RemoveNodeReply) GetFrameID

func (a *RemoveNodeReply) GetFrameID() string

RemoveNodeReply returns the FrameID value for RemoveNode in the DOM domain.

func (*RemoveNodeReply) MatchFrameID

func (a *RemoveNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

RemoveNodeReply returns whether or not the FrameID matches the reply value for RemoveNode in the DOM domain.

func (*RemoveNodeReply) UnmarshalJSON

func (a *RemoveNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveNode in the DOM domain.

type RequestChildNodesArgs

type RequestChildNodesArgs struct {
	NodeID NodeID `json:"nodeId"`           // Id of the node to get children for.
	Depth  int    `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).
}

RequestChildNodesArgs represents the arguments for RequestChildNodes in the DOM domain.

func (*RequestChildNodesArgs) MarshalJSON

func (a *RequestChildNodesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RequestChildNodes in the DOM domain.

func (*RequestChildNodesArgs) UnmarshalJSON

func (a *RequestChildNodesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RequestChildNodes in the DOM domain.

type RequestChildNodesReply

type RequestChildNodesReply struct {
}

RequestChildNodesReply represents the return values for RequestChildNodes in the DOM domain.

func (*RequestChildNodesReply) GetFrameID

func (a *RequestChildNodesReply) GetFrameID() string

RequestChildNodesReply returns the FrameID value for RequestChildNodes in the DOM domain.

func (*RequestChildNodesReply) MatchFrameID

func (a *RequestChildNodesReply) MatchFrameID(frameID string, m []byte) (bool, error)

RequestChildNodesReply returns whether or not the FrameID matches the reply value for RequestChildNodes in the DOM domain.

func (*RequestChildNodesReply) UnmarshalJSON

func (a *RequestChildNodesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RequestChildNodes in the DOM domain.

type RequestNodeArgs

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

RequestNodeArgs represents the arguments for RequestNode in the DOM domain.

func (*RequestNodeArgs) MarshalJSON

func (a *RequestNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RequestNode in the DOM domain.

func (*RequestNodeArgs) UnmarshalJSON

func (a *RequestNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RequestNode in the DOM domain.

type RequestNodeReply

type RequestNodeReply struct {
	NodeID NodeID `json:"nodeId"` // Node id for given object.
}

RequestNodeReply represents the return values for RequestNode in the DOM domain.

func (*RequestNodeReply) GetFrameID

func (a *RequestNodeReply) GetFrameID() string

RequestNodeReply returns the FrameID value for RequestNode in the DOM domain.

func (*RequestNodeReply) MatchFrameID

func (a *RequestNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

RequestNodeReply returns whether or not the FrameID matches the reply value for RequestNode in the DOM domain.

func (*RequestNodeReply) UnmarshalJSON

func (a *RequestNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RequestNode in the DOM domain.

type ResolveNodeArgs

type ResolveNodeArgs struct {
	NodeID             NodeID                     `json:"nodeId,omitempty"`             // Id of the node to resolve.
	BackendNodeID      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.
}

ResolveNodeArgs represents the arguments for ResolveNode in the DOM domain.

func (*ResolveNodeArgs) MarshalJSON

func (a *ResolveNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for ResolveNode in the DOM domain.

func (*ResolveNodeArgs) UnmarshalJSON

func (a *ResolveNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ResolveNode in the DOM domain.

type ResolveNodeReply

type ResolveNodeReply struct {
	Object runtime.RemoteObject `json:"object"` // JavaScript object wrapper for given node.
}

ResolveNodeReply represents the return values for ResolveNode in the DOM domain.

func (*ResolveNodeReply) GetFrameID

func (a *ResolveNodeReply) GetFrameID() string

ResolveNodeReply returns the FrameID value for ResolveNode in the DOM domain.

func (*ResolveNodeReply) MatchFrameID

func (a *ResolveNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

ResolveNodeReply returns whether or not the FrameID matches the reply value for ResolveNode in the DOM domain.

func (*ResolveNodeReply) UnmarshalJSON

func (a *ResolveNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ResolveNode in the DOM domain.

type ScrollIntoViewIfNeededArgs

type ScrollIntoViewIfNeededArgs struct {
	NodeID        NodeID                `json:"nodeId,omitempty"`        // Identifier of the node.
	BackendNodeID BackendNodeID         `json:"backendNodeId,omitempty"` // Identifier of the backend node.
	ObjectID      shared.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.
}

ScrollIntoViewIfNeededArgs represents the arguments for ScrollIntoViewIfNeeded in the DOM domain.

func (*ScrollIntoViewIfNeededArgs) MarshalJSON

func (a *ScrollIntoViewIfNeededArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for ScrollIntoViewIfNeeded in the DOM domain.

func (*ScrollIntoViewIfNeededArgs) UnmarshalJSON

func (a *ScrollIntoViewIfNeededArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ScrollIntoViewIfNeeded in the DOM domain.

type ScrollIntoViewIfNeededReply

type ScrollIntoViewIfNeededReply struct {
}

ScrollIntoViewIfNeededReply represents the return values for ScrollIntoViewIfNeeded in the DOM domain.

func (*ScrollIntoViewIfNeededReply) GetFrameID

func (a *ScrollIntoViewIfNeededReply) GetFrameID() string

ScrollIntoViewIfNeededReply returns the FrameID value for ScrollIntoViewIfNeeded in the DOM domain.

func (*ScrollIntoViewIfNeededReply) MatchFrameID

func (a *ScrollIntoViewIfNeededReply) MatchFrameID(frameID string, m []byte) (bool, error)

ScrollIntoViewIfNeededReply returns whether or not the FrameID matches the reply value for ScrollIntoViewIfNeeded in the DOM domain.

func (*ScrollIntoViewIfNeededReply) UnmarshalJSON

func (a *ScrollIntoViewIfNeededReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ScrollIntoViewIfNeeded in the DOM domain.

type SetAttributeValueArgs

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

SetAttributeValueArgs represents the arguments for SetAttributeValue in the DOM domain.

func (*SetAttributeValueArgs) MarshalJSON

func (a *SetAttributeValueArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetAttributeValue in the DOM domain.

func (*SetAttributeValueArgs) UnmarshalJSON

func (a *SetAttributeValueArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetAttributeValue in the DOM domain.

type SetAttributeValueReply

type SetAttributeValueReply struct {
}

SetAttributeValueReply represents the return values for SetAttributeValue in the DOM domain.

func (*SetAttributeValueReply) GetFrameID

func (a *SetAttributeValueReply) GetFrameID() string

SetAttributeValueReply returns the FrameID value for SetAttributeValue in the DOM domain.

func (*SetAttributeValueReply) MatchFrameID

func (a *SetAttributeValueReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetAttributeValueReply returns whether or not the FrameID matches the reply value for SetAttributeValue in the DOM domain.

func (*SetAttributeValueReply) UnmarshalJSON

func (a *SetAttributeValueReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetAttributeValue in the DOM domain.

type SetAttributesAsTextArgs

type SetAttributesAsTextArgs struct {
	NodeID 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.
}

SetAttributesAsTextArgs represents the arguments for SetAttributesAsText in the DOM domain.

func (*SetAttributesAsTextArgs) MarshalJSON

func (a *SetAttributesAsTextArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetAttributesAsText in the DOM domain.

func (*SetAttributesAsTextArgs) UnmarshalJSON

func (a *SetAttributesAsTextArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetAttributesAsText in the DOM domain.

type SetAttributesAsTextReply

type SetAttributesAsTextReply struct {
}

SetAttributesAsTextReply represents the return values for SetAttributesAsText in the DOM domain.

func (*SetAttributesAsTextReply) GetFrameID

func (a *SetAttributesAsTextReply) GetFrameID() string

SetAttributesAsTextReply returns the FrameID value for SetAttributesAsText in the DOM domain.

func (*SetAttributesAsTextReply) MatchFrameID

func (a *SetAttributesAsTextReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetAttributesAsTextReply returns whether or not the FrameID matches the reply value for SetAttributesAsText in the DOM domain.

func (*SetAttributesAsTextReply) UnmarshalJSON

func (a *SetAttributesAsTextReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetAttributesAsText in the DOM domain.

type SetChildNodesReply

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

SetChildNodesReply is the reply for SetChildNodes events.

func (*SetChildNodesReply) GetFrameID

func (a *SetChildNodesReply) GetFrameID() string

SetChildNodesReply returns the FrameID for SetChildNodes in the DOM domain.

func (*SetChildNodesReply) MatchFrameID

func (a *SetChildNodesReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetChildNodesReply returns whether or not the FrameID matches the reply value for SetChildNodes in the DOM domain.

func (*SetChildNodesReply) UnmarshalJSON

func (a *SetChildNodesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetChildNodes in the DOM domain.

type SetFileInputFilesArgs

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

SetFileInputFilesArgs represents the arguments for SetFileInputFiles in the DOM domain.

func (*SetFileInputFilesArgs) MarshalJSON

func (a *SetFileInputFilesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetFileInputFiles in the DOM domain.

func (*SetFileInputFilesArgs) UnmarshalJSON

func (a *SetFileInputFilesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetFileInputFiles in the DOM domain.

type SetFileInputFilesReply

type SetFileInputFilesReply struct {
}

SetFileInputFilesReply represents the return values for SetFileInputFiles in the DOM domain.

func (*SetFileInputFilesReply) GetFrameID

func (a *SetFileInputFilesReply) GetFrameID() string

SetFileInputFilesReply returns the FrameID value for SetFileInputFiles in the DOM domain.

func (*SetFileInputFilesReply) MatchFrameID

func (a *SetFileInputFilesReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetFileInputFilesReply returns whether or not the FrameID matches the reply value for SetFileInputFiles in the DOM domain.

func (*SetFileInputFilesReply) UnmarshalJSON

func (a *SetFileInputFilesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetFileInputFiles in the DOM domain.

type SetInspectedNodeArgs

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

SetInspectedNodeArgs represents the arguments for SetInspectedNode in the DOM domain.

func (*SetInspectedNodeArgs) MarshalJSON

func (a *SetInspectedNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetInspectedNode in the DOM domain.

func (*SetInspectedNodeArgs) UnmarshalJSON

func (a *SetInspectedNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetInspectedNode in the DOM domain.

type SetInspectedNodeReply

type SetInspectedNodeReply struct {
}

SetInspectedNodeReply represents the return values for SetInspectedNode in the DOM domain.

func (*SetInspectedNodeReply) GetFrameID

func (a *SetInspectedNodeReply) GetFrameID() string

SetInspectedNodeReply returns the FrameID value for SetInspectedNode in the DOM domain.

func (*SetInspectedNodeReply) MatchFrameID

func (a *SetInspectedNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetInspectedNodeReply returns whether or not the FrameID matches the reply value for SetInspectedNode in the DOM domain.

func (*SetInspectedNodeReply) UnmarshalJSON

func (a *SetInspectedNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetInspectedNode in the DOM domain.

type SetNodeNameArgs

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

SetNodeNameArgs represents the arguments for SetNodeName in the DOM domain.

func (*SetNodeNameArgs) MarshalJSON

func (a *SetNodeNameArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetNodeName in the DOM domain.

func (*SetNodeNameArgs) UnmarshalJSON

func (a *SetNodeNameArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetNodeName in the DOM domain.

type SetNodeNameReply

type SetNodeNameReply struct {
	NodeID NodeID `json:"nodeId"` // New node's id.
}

SetNodeNameReply represents the return values for SetNodeName in the DOM domain.

func (*SetNodeNameReply) GetFrameID

func (a *SetNodeNameReply) GetFrameID() string

SetNodeNameReply returns the FrameID value for SetNodeName in the DOM domain.

func (*SetNodeNameReply) MatchFrameID

func (a *SetNodeNameReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetNodeNameReply returns whether or not the FrameID matches the reply value for SetNodeName in the DOM domain.

func (*SetNodeNameReply) UnmarshalJSON

func (a *SetNodeNameReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetNodeName in the DOM domain.

type SetNodeStackTracesEnabledArgs

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

SetNodeStackTracesEnabledArgs represents the arguments for SetNodeStackTracesEnabled in the DOM domain.

func (*SetNodeStackTracesEnabledArgs) MarshalJSON

func (a *SetNodeStackTracesEnabledArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetNodeStackTracesEnabled in the DOM domain.

func (*SetNodeStackTracesEnabledArgs) UnmarshalJSON

func (a *SetNodeStackTracesEnabledArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetNodeStackTracesEnabled in the DOM domain.

type SetNodeStackTracesEnabledReply

type SetNodeStackTracesEnabledReply struct {
}

SetNodeStackTracesEnabledReply represents the return values for SetNodeStackTracesEnabled in the DOM domain.

func (*SetNodeStackTracesEnabledReply) GetFrameID

func (a *SetNodeStackTracesEnabledReply) GetFrameID() string

SetNodeStackTracesEnabledReply returns the FrameID value for SetNodeStackTracesEnabled in the DOM domain.

func (*SetNodeStackTracesEnabledReply) MatchFrameID

func (a *SetNodeStackTracesEnabledReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetNodeStackTracesEnabledReply returns whether or not the FrameID matches the reply value for SetNodeStackTracesEnabled in the DOM domain.

func (*SetNodeStackTracesEnabledReply) UnmarshalJSON

func (a *SetNodeStackTracesEnabledReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetNodeStackTracesEnabled in the DOM domain.

type SetNodeValueArgs

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

SetNodeValueArgs represents the arguments for SetNodeValue in the DOM domain.

func (*SetNodeValueArgs) MarshalJSON

func (a *SetNodeValueArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetNodeValue in the DOM domain.

func (*SetNodeValueArgs) UnmarshalJSON

func (a *SetNodeValueArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetNodeValue in the DOM domain.

type SetNodeValueReply

type SetNodeValueReply struct {
}

SetNodeValueReply represents the return values for SetNodeValue in the DOM domain.

func (*SetNodeValueReply) GetFrameID

func (a *SetNodeValueReply) GetFrameID() string

SetNodeValueReply returns the FrameID value for SetNodeValue in the DOM domain.

func (*SetNodeValueReply) MatchFrameID

func (a *SetNodeValueReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetNodeValueReply returns whether or not the FrameID matches the reply value for SetNodeValue in the DOM domain.

func (*SetNodeValueReply) UnmarshalJSON

func (a *SetNodeValueReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetNodeValue in the DOM domain.

type SetOuterHTMLArgs

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

SetOuterHTMLArgs represents the arguments for SetOuterHTML in the DOM domain.

func (*SetOuterHTMLArgs) MarshalJSON

func (a *SetOuterHTMLArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetOuterHTML in the DOM domain.

func (*SetOuterHTMLArgs) UnmarshalJSON

func (a *SetOuterHTMLArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetOuterHTML in the DOM domain.

type SetOuterHTMLReply

type SetOuterHTMLReply struct {
}

SetOuterHTMLReply represents the return values for SetOuterHTML in the DOM domain.

func (*SetOuterHTMLReply) GetFrameID

func (a *SetOuterHTMLReply) GetFrameID() string

SetOuterHTMLReply returns the FrameID value for SetOuterHTML in the DOM domain.

func (*SetOuterHTMLReply) MatchFrameID

func (a *SetOuterHTMLReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetOuterHTMLReply returns whether or not the FrameID matches the reply value for SetOuterHTML in the DOM domain.

func (*SetOuterHTMLReply) UnmarshalJSON

func (a *SetOuterHTMLReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetOuterHTML in the DOM domain.

type ShadowRootPoppedReply

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

ShadowRootPoppedReply is the reply for ShadowRootPopped events.

func (*ShadowRootPoppedReply) GetFrameID

func (a *ShadowRootPoppedReply) GetFrameID() string

ShadowRootPoppedReply returns the FrameID for ShadowRootPopped in the DOM domain.

func (*ShadowRootPoppedReply) MatchFrameID

func (a *ShadowRootPoppedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ShadowRootPoppedReply returns whether or not the FrameID matches the reply value for ShadowRootPopped in the DOM domain.

func (*ShadowRootPoppedReply) UnmarshalJSON

func (a *ShadowRootPoppedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ShadowRootPopped in the DOM domain.

type ShadowRootPushedReply

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

ShadowRootPushedReply is the reply for ShadowRootPushed events.

func (*ShadowRootPushedReply) GetFrameID

func (a *ShadowRootPushedReply) GetFrameID() string

ShadowRootPushedReply returns the FrameID for ShadowRootPushed in the DOM domain.

func (*ShadowRootPushedReply) MatchFrameID

func (a *ShadowRootPushedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ShadowRootPushedReply returns whether or not the FrameID matches the reply value for ShadowRootPushed in the DOM domain.

func (*ShadowRootPushedReply) UnmarshalJSON

func (a *ShadowRootPushedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ShadowRootPushed in the DOM domain.

type ShadowRootType

type ShadowRootType string

ShadowRootType Shadow root type.

const (
	ShadowRootTypeNotSet    ShadowRootType = ""
	ShadowRootTypeUserAgent ShadowRootType = "user-agent"
	ShadowRootTypeOpen      ShadowRootType = "open"
	ShadowRootTypeClosed    ShadowRootType = "closed"
)

ShadowRootType as enums.

func (ShadowRootType) String

func (e ShadowRootType) String() string

func (ShadowRootType) Valid

func (e ShadowRootType) Valid() bool

type ShapeOutsideInfo

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

ShapeOutsideInfo CSS Shape Outside details.

type UndoArgs

type UndoArgs struct {
}

UndoArgs represents the arguments for Undo in the DOM domain.

func (*UndoArgs) MarshalJSON

func (a *UndoArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Undo in the DOM domain.

func (*UndoArgs) UnmarshalJSON

func (a *UndoArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Undo in the DOM domain.

type UndoReply

type UndoReply struct {
}

UndoReply represents the return values for Undo in the DOM domain.

func (*UndoReply) GetFrameID

func (a *UndoReply) GetFrameID() string

UndoReply returns the FrameID value for Undo in the DOM domain.

func (*UndoReply) MatchFrameID

func (a *UndoReply) MatchFrameID(frameID string, m []byte) (bool, error)

UndoReply returns whether or not the FrameID matches the reply value for Undo in the DOM domain.

func (*UndoReply) UnmarshalJSON

func (a *UndoReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Undo in the DOM domain.

type Unmarshaler

type Unmarshaler func() json.Unmarshaler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL