dom

package
v0.0.0-...-dc23122 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package dom provides type definitions for use with the Chrome DOM protocol

https://chromedevtools.github.io/devtools-protocol/tot/DOM/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeModifiedEvent

type AttributeModifiedEvent struct {
	// ID of the node that has changed.
	NodeID NodeID `json:"nodeId"`

	// Attribute name.
	Name string `json:"name"`

	// Attribute value.
	Value string `json:"value"`

	// Error information related to this event
	Err error `json:"-"`
}

AttributeModifiedEvent represents DOM.attributeModified event data.

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

type AttributeRemovedEvent

type AttributeRemovedEvent struct {
	// ID of the node that has changed.
	NodeID NodeID `json:"nodeId"`

	// Attribute name.
	Name string `json:"name"`

	// Error information related to this event
	Err error `json:"-"`
}

AttributeRemovedEvent represents DOM.attributeRemoved event data.

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

type BackendNode

type BackendNode struct {
	// Node's nodeType.
	NodeType int `json:"nodeType"`

	// Node's nodeName.
	NodeName string `json:"nodeName"`

	// Node's ID
	BackendNodeID BackendNodeID `json:"backendNodeId"`
}

BackendNode is a backend node with a friendly name.

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

type BackendNodeID

type BackendNodeID int

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

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

type BoxModel

type BoxModel struct {
	// Content box.
	Content Quad `json:"content"`

	// Padding box.
	Padding Quad `json:"padding"`

	// Border box.
	Border Quad `json:"border"`

	// Margin box.
	Margin Quad `json:"margin"`

	// Node width.
	Width int64 `json:"width"`

	// Node height.
	Height int64 `json:"height"`

	// Optional. Shape outside coordinates.
	ShapeOutside *ShapeOutsideInfo `json:"shapeOutside,omitempty"`
}

BoxModel represents the box model.

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

type CharacterDataModifiedEvent

type CharacterDataModifiedEvent struct {
	// ID of the node that has changed.
	NodeID NodeID `json:"nodeId"`

	// New text value.
	CharacterData string `json:"characterData"`

	// Error information related to this event
	Err error `json:"-"`
}

CharacterDataModifiedEvent represents DOM.characterDataModified event data.

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

type ChildNodeCountUpdatedEvent

type ChildNodeCountUpdatedEvent struct {
	// ID of the node that has changed.
	ParentNodeID NodeID `json:"parentNodeId"`

	// If of the previous siblint.
	PreviousNodeID NodeID `json:"previousNodeId"`

	// Inserted node data.
	Node *Node `json:"node"`

	// Error information related to this event
	Err error `json:"-"`
}

ChildNodeCountUpdatedEvent represents DOM.childNodeCountUpdated event data.

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

type ChildNodeInsertedEvent

type ChildNodeInsertedEvent struct {
	// ID of the node that has changed.
	ParentNodeID NodeID `json:"parentNodeId"`

	// If of the previous siblint.
	PreviousNodeID NodeID `json:"previousNodeId"`

	// Inserted node data.
	Node *Node `json:"node"`

	// Error information related to this event
	Err error `json:"-"`
}

ChildNodeInsertedEvent represents DOM.childNodeInserted event data.

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

type ChildNodeRemovedEvent

type ChildNodeRemovedEvent struct {
	// Parent ID.
	ParentNodeID NodeID `json:"parentNodeId"`

	// ID of the node that has been removed.
	NodeID NodeID `json:"nodeId"`

	// Error information related to this event
	Err error `json:"-"`
}

ChildNodeRemovedEvent represents DOM.childNodeRemoved event data.

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

type CollectClassNamesFromSubtreeParams

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

CollectClassNamesFromSubtreeParams represents DOM.collectClassNamesFromSubtree parameters.

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

type CollectClassNamesFromSubtreeResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

CollectClassNamesFromSubtreeResult represents the result of calls to DOM.collectClassNamesFromSubtree.

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

type CopyToParams

type CopyToParams struct {
	// ID of the node to copy.
	NodeID NodeID `json:"nodeId"`

	// ID of the element to drop the copy into.
	TargetNodeID NodeID `json:"targetNodeId"`

	// Optional. Drop the copy before this node (if absent, the copy becomes the
	// last child of targetNodeId).
	InsertBeforeNodeID NodeID `json:"insertBeforeNodeId,omitempty"`
}

CopyToParams represents DOM.copyTo parameters.

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

type CopyToResult

type CopyToResult struct {
	// ID of the new cloned node.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

CopyToResult represents the result of calls to DOM.copyTo.

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

type DescribeNodeParams

type DescribeNodeParams struct {
	// Optional. ID of the node.
	NodeID NodeID `json:"nodeId,omitempty"`

	// Optional. ID of the backend node.
	BackendNodeID BackendNodeID `json:"backendNodeId,omitempty"`

	// Optional. JavaScript object ID of the node wrapper.
	ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"`

	// Optional. 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.
	Depth int64 `json:"depth,omitempty"`

	// Optional. Whether or not iframes and shadow roots should be traversed
	// when returning the subtree (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

DescribeNodeParams represents DOM.describeNode parameters.

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

type DescribeNodeResult

type DescribeNodeResult struct {
	// ID of the new cloned node.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

DescribeNodeResult represents the result of calls to DOM.describeNode.

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

type DisableResult

type DisableResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

DisableResult represents the result of calls to DOM.disable.

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

type DiscardSearchResultsParams

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

DiscardSearchResultsParams represents DOM.discardSearchResults parameters.

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

type DiscardSearchResultsResult

type DiscardSearchResultsResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

DiscardSearchResultsResult represents the result of calls to DOM.discardSearchResults.

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

type DistributedNodesUpdatedEvent

type DistributedNodesUpdatedEvent struct {
	// Insertion point where distributed nodes were updated.
	InsertionPointID NodeID `json:"insertionPointId"`

	// Distributed nodes for given insertion point.
	DistributedNodes []*BackendNode `json:"distributedNodes"`

	// Error information related to this event
	Err error `json:"-"`
}

DistributedNodesUpdatedEvent represents DOM.distributedNodesUpdated event data.

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

type DocumentUpdatedEvent

type DocumentUpdatedEvent struct {
	// Error information related to this event
	Err error `json:"-"`
}

DocumentUpdatedEvent represents DOM.documentUpdated event data.

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

type EnableResult

type EnableResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

EnableResult represents the result of calls to DOM.enable.

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

type FocusParams

type FocusParams struct {
	// Optional. ID of the node.
	NodeID NodeID `json:"nodeId,omitempty"`

	// Optional. ID of the backend node.
	BackendNodeID BackendNodeID `json:"backendNodeId,omitempty"`

	// Optional. JavaScript object ID of the node wrapper.
	ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"`
}

FocusParams represents DOM.focus parameters.

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

type FocusResult

type FocusResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

FocusResult represents the result of calls to DOM.focus.

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

type GetAttributesParams

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

GetAttributesParams represents DOM.getAttributes parameters.

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

type GetAttributesResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

GetAttributesResult represents the result of calls to DOM.getAttributes.

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

type GetBoxModelParams

type GetBoxModelParams struct {
	// Optional. ID of the node.
	NodeID NodeID `json:"nodeId,omitempty"`

	// Optional. ID of the backend node.
	BackendNodeID BackendNodeID `json:"backendNodeId,omitempty"`

	// Optional. JavaScript object ID of the node wrapper.
	ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"`
}

GetBoxModelParams represents DOM.getBoxModel parameters.

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

type GetBoxModelResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

GetBoxModelResult represents the result of calls to DOM.getBoxModel.

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

type GetDocumentParams

type GetDocumentParams struct {
	// Optional. 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.
	Depth int `json:"depth,omitempty"`

	// Optional. Whether or not iframes and shadow roots should be traversed
	// when returning the subtree (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

GetDocumentParams represents DOM.getDocument parameters.

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

type GetDocumentResult

type GetDocumentResult struct {
	// Resulting node.
	Root *Node `json:"root"`

	// Error information related to executing this method
	Err error `json:"-"`
}

GetDocumentResult represents the result of calls to DOM.getDocument.

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

type GetFlattenedDocumentParams

type GetFlattenedDocumentParams struct {
	// Optional. 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.
	Depth int `json:"depth,omitempty"`

	// Optional. Whether or not iframes and shadow roots should be traversed
	// when returning the subtree (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

GetFlattenedDocumentParams represents DOM.getFlattenedDocument parameters.

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

type GetFlattenedDocumentResult

type GetFlattenedDocumentResult struct {
	// Resulting nodes.
	Nodes []*Node `json:"nodes"`

	// Error information related to executing this method
	Err error `json:"-"`
}

GetFlattenedDocumentResult represents the result of calls to DOM.getFlattenedDocument.

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

type GetNodeForLocationParams

type GetNodeForLocationParams struct {
	// X coordinate.
	X int64 `json:"x"`

	// Y coordinate.
	Y int64 `json:"y"`

	// Optional. False to skip to the nearest non-UA shadow root ancestor
	// (default: false).
	IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"`
}

GetNodeForLocationParams represents DOM.getNodeForLocation parameters.

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

type GetNodeForLocationResult

type GetNodeForLocationResult struct {
	// ID of the node at given coordinates.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

GetNodeForLocationResult represents the result of calls to DOM.getNodeForLocation.

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

type GetOuterHTMLParams

type GetOuterHTMLParams struct {
	// Optional. ID of the node.
	NodeID NodeID `json:"nodeId,omitempty"`

	// Optional. ID of the backend node.
	BackendNodeID BackendNodeID `json:"backendNodeId,omitempty"`

	// Optional. JavaScript object ID of the node wrapper.
	ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"`
}

GetOuterHTMLParams represents DOM.getOuterHTML parameters.

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

type GetOuterHTMLResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

GetOuterHTMLResult represents the result of calls to DOM.getOuterHTML.

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

type GetRelayoutBoundaryParams

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

GetRelayoutBoundaryParams represents DOM.getRelayoutBoundary parameters.

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

type GetRelayoutBoundaryResult

type GetRelayoutBoundaryResult struct {
	// Relayout boundary node ID for the given node.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

GetRelayoutBoundaryResult represents the result of calls to DOM.getRelayoutBoundary.

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

type GetSearchResultsParams

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

	// Start index of the search result to be returned.
	FromIndex int64 `json:"fromIndex"`

	// End index of the search result to be returned.
	ToIndex int64 `json:"toIndex"`
}

GetSearchResultsParams represents DOM.getSearchResults parameters.

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

type GetSearchResultsResult

type GetSearchResultsResult struct {
	// IDs of the search result nodes.
	NodeIDs []NodeID `json:"nodeIds"`

	// Error information related to executing this method
	Err error `json:"-"`
}

GetSearchResultsResult represents the result of calls to DOM.getSearchResults.

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

type InlineStyleInvalidatedEvent

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

	// Error information related to this event
	Err error `json:"-"`
}

InlineStyleInvalidatedEvent represents DOM.inlineStyleInvalidated event data.

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

type MarkUndoableStateResult

type MarkUndoableStateResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

MarkUndoableStateResult represents the result of calls to DOM.markUndoableState.

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

type MoveToParams

type MoveToParams struct {
	// ID of the node to move.
	NodeID NodeID `json:"nodeId"`

	// ID of the element to drop the moved node into.
	TargetNodeID NodeID `json:"targetNodeId"`

	// Optional. Drop node before this one (if absent, the moved node becomes
	// the last child of targetNodeId).
	InsertBeforeNodeID NodeID `json:"insertBeforeNodeId,omitempty"`
}

MoveToParams represents DOM.moveTo parameters.

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

type MoveToResult

type MoveToResult struct {
	// New ID of the moved node.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

MoveToResult represents the result of calls to DOM.moveTo.

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

type Node

type Node struct {
	// 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.
	NodeID NodeID `json:"nodeId"`

	// Optional. The ID of the parent node if any.
	ParentID NodeID `json:"parentId,omitempty"`

	// The BackendNodeID for this node.
	BackendNodeID BackendNodeID `json:"backendNodeId"`

	// Node's nodeType.
	NodeType int `json:"nodeType"`

	// Node's nodeName.
	NodeName string `json:"nodeName"`

	// Node's localName.
	LocalName string `json:"localName"`

	// Node's nodeValue.
	NodeValue string `json:"nodeValue"`

	// Optional. Child count for Container nodes.
	ChildNodeCount int `json:"childNodeCount,omitempty"`

	// Optional. Child nodes of this node when requested with children.
	Children []*Node `json:"children,omitempty"`

	// Optional. Attributes of the Element node in the form of flat array
	// [name1, value1, name2, value2].
	Attributes []string `json:"attributes,omitempty"`

	// Optional. Document URL that Document or FrameOwner node points to.
	DocumentURL string `json:"documentURL,omitempty"`

	// Optional. Base URL that Document or FrameOwner node uses for URL
	// completion.
	BaseURL string `json:"baseURL,omitempty"`

	// Optional. DocumentType's publicId.
	PublicID string `json:"publicId,omitempty"`

	// Optional. DocumentType's systemId.
	SystemID string `json:"systemId,omitempty"`

	// Optional. DocumentType's internalSubset.
	InternalSubset string `json:"internalSubset,omitempty"`

	// Optional. Document's XML version in case of XML documents.
	XMLVersion string `json:"xmlVersion,omitempty"`

	// Optional. Attr's name.
	Name string `json:"name,omitempty"`

	// Optional. Attr's value.
	Value string `json:"value,omitempty"`

	// Optional. Pseudo element type for this node.
	PseudoType PseudoType `json:"pseudoType,omitempty"`

	// Optional. Shadow root type.
	ShadowRootType ShadowRootType `json:"shadowRootType,omitempty"`

	// Optional. Frame ID for frame owner elements.
	FrameID page.FrameID `json:"frameId,omitempty"`

	// Optional. Content document for frame owner elements.
	ContentDocument *Node `json:"contentDocument,omitempty"`

	// Optional. Shadow root list for given element host.
	ShadowRoots []*Node `json:"shadowRoots,omitempty"`

	// Optional. Content document fragment for template elements.
	TemplateContent *Node `json:"templateContent,omitempty"`

	// Optional. Pseudo elements associated with this node.
	PseudoElements []*Node `json:"pseudoElements,omitempty"`

	// Optional. Import document for the HTMLImport links.
	ImportedDocument *Node `json:"importedDocument,omitempty"`

	// Optional. Distributed nodes for given insertion point.
	DistributedNodes []*BackendNode `json:"distributedNodes,omitempty"`

	// Optional. Whether the node is SVG.
	IsSVG bool `json:"isSVG,omitempty"`
}

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

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

type NodeID

type NodeID int

NodeID is a unique DOM node identifier.

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

type PerformSearchParams

type PerformSearchParams struct {
	// Plain text or query selector or XPath search query.
	Query string `json:"query"`

	// Optional. True to search in user agent shadow DOM.
	IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"`
}

PerformSearchParams represents DOM.performSearch parameters.

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

type PerformSearchResult

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

	// Number of search results.
	ResultCount int `json:"resultCount"`

	// Error information related to executing this method
	Err error `json:"-"`
}

PerformSearchResult represents the result of calls to DOM.performSearch.

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

type PseudoElementAddedEvent

type PseudoElementAddedEvent struct {
	// Pseudo element's parent element ID.
	ParentID NodeID `json:"parentId"`

	// The added pseudo element.
	PseudoElement *Node `json:"pseudoElement"`

	// Error information related to this event
	Err error `json:"-"`
}

PseudoElementAddedEvent represents DOM.pseudoElementAdded event data.

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

type PseudoElementRemovedEvent

type PseudoElementRemovedEvent struct {
	// Pseudo element's parent element ID.
	ParentID NodeID `json:"parentId"`

	// The removed pseudo element ID.
	PseudoElementID NodeID `json:"pseudoElementId"`

	// Error information related to this event
	Err error `json:"-"`
}

PseudoElementRemovedEvent represents DOM.pseudoElementRemoved event data.

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

type PseudoType

type PseudoType string

PseudoType is a pseudo element type.

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

type PushNodeByPathToFrontendParams

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

PushNodeByPathToFrontendParams represents DOM.pushNodeByPathToFrontend parameters.

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

type PushNodeByPathToFrontendResult

type PushNodeByPathToFrontendResult struct {
	// ID of the node for given path.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

PushNodeByPathToFrontendResult represents the result of calls to DOM.pushNodeByPathToFrontend.

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

type PushNodesByBackendIDsToFrontendParams

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

PushNodesByBackendIDsToFrontendParams represents DOM.pushNodesByBackendIdsToFrontend parameters.

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

type PushNodesByBackendIDsToFrontendResult

type PushNodesByBackendIDsToFrontendResult struct {
	// The array of IDs of pushed nodes that correspond to the backend IDs
	// specified in backendNodeIDs.
	NodeIDs []NodeID `json:"nodeIds"`

	// Error information related to executing this method
	Err error `json:"-"`
}

PushNodesByBackendIDsToFrontendResult represents the result of calls to DOM.pushNodesByBackendIdsToFrontend.

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

type Quad

type Quad [2]float64

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

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

type QuerySelectorAllParams

type QuerySelectorAllParams struct {
	// ID of the node to query upon.
	NodeID NodeID `json:"nodeId"`

	// Selector string.
	Selector string `json:"selector"`
}

QuerySelectorAllParams represents DOM.querySelectorAll parameters.

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

type QuerySelectorAllResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

QuerySelectorAllResult represents the result of calls to DOM.querySelectorAll.

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

type QuerySelectorParams

type QuerySelectorParams struct {
	// ID of the node to query.
	NodeID NodeID `json:"nodeId"`

	// Selector string.
	Selector string `json:"selector"`
}

QuerySelectorParams represents DOM.querySelector parameters.

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

type QuerySelectorResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

QuerySelectorResult represents the result of calls to DOM.querySelector.

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

type RGBA

type RGBA struct {
	// The red component, in the [0-255] range.
	R int `json:"r"`

	// The green component, in the [0-255] range.
	G int `json:"g"`

	// The blue component, in the [0-255] range.
	B int `json:"b"`

	// Optional. The alpha component, in the [0-1] range (default: 1).
	A int `json:"a,omitempty"`
}

RGBA is a structure holding an RGBA color.

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

type Rect

type Rect struct {
	// X coordinate.
	X int64 `json:"x"`

	// Y coordinate.
	Y int64 `json:"y"`

	// Rectangle width.
	Width int64 `json:"width"`

	// Rectangle height.
	Height int64 `json:"height"`
}

Rect defines a rectangle

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

type RedoResult

type RedoResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RedoResult represents the result of calls to DOM.redo.

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

type RemoveAttributeParams

type RemoveAttributeParams struct {
	// ID of the element to remove attribute from.
	NodeID NodeID `json:"nodeId"`

	// Name of the attribute to remove.
	Name string `json:"name"`
}

RemoveAttributeParams represents DOM.removeAttribute parameters.

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

type RemoveAttributeResult

type RemoveAttributeResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RemoveAttributeResult represents the result of calls to DOM.removeAttribute.

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

type RemoveNodeParams

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

RemoveNodeParams represents DOM.removeNode parameters.

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

type RemoveNodeResult

type RemoveNodeResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RemoveNodeResult represents the result of calls to DOM.removeNode.

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

type RequestChildNodesParams

type RequestChildNodesParams struct {
	// ID of the node to get children for.
	NodeID NodeID `json:"nodeId"`

	// Optional. 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.
	Depth int64 `json:"depth,omitempty"`

	// Optional. Whether or not iframes and shadow roots should be traversed
	// when returning the sub-tree (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

RequestChildNodesParams represents DOM.requestChildNodes parameters.

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

type RequestChildNodesResult

type RequestChildNodesResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RequestChildNodesResult represents the result of calls to DOM.requestChildNodes.

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

type RequestNodeParams

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

RequestNodeParams represents DOM.requestNode parameters.

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

type RequestNodeResult

type RequestNodeResult struct {
	// Node ID for given object.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

RequestNodeResult represents the result of calls to DOM.requestNode.

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

type ResolveNodeParams

type ResolveNodeParams struct {
	// Optional. ID of the node to resolve.
	NodeID NodeID `json:"nodeId,omitempty"`

	// Optional. Backend identifier of the node to resolve.
	BackendNodeID BackendNodeID `json:"backendNodeId,omitempty"`

	// Optional. Symbolic group name that can be used to release multiple
	// objects.
	ObjectGroup string `json:"objectGroup,omitempty"`
}

ResolveNodeParams represents DOM.resolveNode parameters.

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

type ResolveNodeResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

ResolveNodeResult represents the result of calls to DOM.resolveNode.

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

type SetAttributeValueParams

type SetAttributeValueParams struct {
	// ID of the element to set attribute for.
	NodeID NodeID `json:"nodeId"`

	// Attribute name.
	Name string `json:"name"`

	// Attribute value.
	Value string `json:"value"`
}

SetAttributeValueParams represents DOM.setAttributeValue parameters.

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

type SetAttributeValueResult

type SetAttributeValueResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetAttributeValueResult represents the result of calls to DOM.setAttributeValue.

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

type SetAttributesAsTextParams

type SetAttributesAsTextParams struct {
	// ID of the element to set attributes for.
	NodeID NodeID `json:"nodeId"`

	// Text with a number of attributes. Will parse this text using HTML parser.
	Text string `json:"text"`

	// Optional. Attribute name to replace with new attributes derived from text
	// in case text parsed successfully.
	Name string `json:"name,omitempty"`
}

SetAttributesAsTextParams represents DOM.setAttributesAsText parameters.

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

type SetAttributesAsTextResult

type SetAttributesAsTextResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetAttributesAsTextResult represents the result of calls to DOM.setAttributesAsText.

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

type SetChildNodesEvent

type SetChildNodesEvent struct {
	// Parent node ID to populate with children.
	ParentID NodeID `json:"parentId"`

	// Child nodes array.
	Nodes []*Node `json:"nodes"`

	// Error information related to this event
	Err error `json:"-"`
}

SetChildNodesEvent represents DOM.setChildNodes event data.

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

type SetFileInputFilesParams

type SetFileInputFilesParams struct {
	// Array of file paths to set.
	Files []string `json:"files"`

	// Optional. ID of the node.
	NodeID NodeID `json:"nodeId,omitempty"`

	// Optional. ID of the backend node.
	BackendNodeID BackendNodeID `json:"backendNodeId,omitempty"`

	// Optional. JavaScript object ID of the node wrapper.
	ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"`
}

SetFileInputFilesParams represents DOM.setFileInputFiles parameters.

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

type SetFileInputFilesResult

type SetFileInputFilesResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetFileInputFilesResult represents the result of calls to DOM.setFileInputFiles.

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

type SetInspectedNodeParams

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

SetInspectedNodeParams represents DOM.setInspectedNode parameters.

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

type SetInspectedNodeResult

type SetInspectedNodeResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetInspectedNodeResult represents the result of calls to DOM.setInspectedNode.

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

type SetNodeNameParams

type SetNodeNameParams struct {
	// ID of the node to set name for.
	NodeID NodeID `json:"nodeId"`

	// New node name.
	Name string `json:"name"`
}

SetNodeNameParams represents DOM.setNodeName parameters.

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

type SetNodeNameResult

type SetNodeNameResult struct {
	// New node's ID.
	NodeID NodeID `json:"nodeId"`

	// Error information related to executing this method
	Err error `json:"-"`
}

SetNodeNameResult represents the result of calls to DOM.setNodeName.

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

type SetNodeValueParams

type SetNodeValueParams struct {
	// ID of the node to set value for.
	NodeID NodeID `json:"nodeId"`

	// New node value.
	Value string `json:"value"`
}

SetNodeValueParams represents DOM.setNodeValue parameters.

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

type SetNodeValueResult

type SetNodeValueResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetNodeValueResult represents the result of calls to DOM.setNodeValue.

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

type SetOuterHTMLParams

type SetOuterHTMLParams struct {
	// ID of the node to set markup for.
	NodeID NodeID `json:"nodeId"`

	// Outer HTML markup to set.
	OuterHTML string `json:"outerHTML"`
}

SetOuterHTMLParams represents DOM.setOuterHTML parameters.

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

type SetOuterHTMLResult

type SetOuterHTMLResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetOuterHTMLResult represents the result of calls to DOM.setOuterHTML.

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

type ShadowRootPoppedEvent

type ShadowRootPoppedEvent struct {
	// Host element ID.
	HostID NodeID `json:"hostId"`

	// Shadow root ID.
	RootID NodeID `json:"rootId"`

	// Error information related to this event
	Err error `json:"-"`
}

ShadowRootPoppedEvent represents DOM.shadowRootPopped event data.

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

type ShadowRootPushedEvent

type ShadowRootPushedEvent struct {
	// Host element ID.
	HostID NodeID `json:"hostId"`

	// Shadow root.
	Root *Node `json:"root"`

	// Error information related to this event
	Err error `json:"-"`
}

ShadowRootPushedEvent represents DOM.shadowRootPushed event data.

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

type ShadowRootType

type ShadowRootType string

ShadowRootType is a shadow root type.

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

type ShapeOutsideInfo

type ShapeOutsideInfo struct {
	// Shape bounds.
	Bounds Quad `json:"bounds"`

	// Shape coordinate details.
	Shape []interface{} `json:"shape"`

	// Margin shape bounds.
	MarginShape []interface{} `json:"marginShape"`
}

ShapeOutsideInfo represents the CSS Shape Outside details.

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

type UndoResult

type UndoResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

UndoResult represents the result of calls to DOM.undo.

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

Directories

Path Synopsis
Package debugger provides type definitions for use with the Chrome DOMDebugger protocol
Package debugger provides type definitions for use with the Chrome DOMDebugger protocol
Package snapshot provides type definitions for use with the Chrome DOMSnapshot protocol
Package snapshot provides type definitions for use with the Chrome DOMSnapshot protocol
Package storage provides type definitions for use with the Chrome DOMStorage protocol
Package storage provides type definitions for use with the Chrome DOMStorage protocol

Jump to

Keyboard shortcuts

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