package
0.0.0-20250224005500-01948a15fe7c
Repository: https://github.com/chromedp/cdproto.git
Documentation: pkg.go.dev
# Functions
CollectClassNamesFromSubtree collects class names for the node with given id and all of it's child nodes.
CopyTo creates a deep copy of the specified node and places it into the target container before the given anchor.
DescribeNode describes node given its id, does not require domain to be enabled.
Disable disables DOM agent for the given page.
DiscardSearchResults discards search results from the session with the given id.
Enable enables DOM agent for the given page.
Focus focuses the given element.
GetAnchorElement returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.
GetAttributes returns attributes for the specified node.
GetBoxModel returns boxes for the given node.
GetContainerForNode returns the query container of the given node based on container query conditions: containerName, physical and logical axes, and whether it queries scroll-state.
GetContentQuads returns quads that describe node position on the page.
GetDetachedDomNodes returns list of detached nodes.
GetDocument returns the root DOM node (and optionally the subtree) to the caller.
GetElementByRelation returns the NodeId of the matched element according to certain relations.
GetFileInfo returns file information for the given File wrapper.
GetFrameOwner returns iframe node that owns iframe with the given domain.
GetNodeForLocation returns node id at given location.
GetNodesForSubtreeByStyle finds nodes with a given computed style in a subtree.
GetNodeStackTraces gets stack traces associated with a Node.
GetOuterHTML returns node's HTML markup.
GetQueryingDescendantsForContainer returns the descendants of a container query container that have container queries against this container.
GetRelayoutBoundary returns the id of the nearest ancestor that is a relayout boundary.
GetSearchResults returns search results from given fromIndex to given toIndex from the search with the given identifier.
GetTopLayerElements returns NodeIds of current top layer elements.
MarkUndoableState marks last undoable state.
MoveTo moves node into the new container, places it before the given anchor.
PerformSearch searches for a given string in the DOM tree.
PushNodeByPathToFrontend requests that the node is sent to the caller given its path.
PushNodesByBackendIDsToFrontend requests that a batch of nodes is sent to the caller given their backend node ids.
QuerySelector executes querySelector on a given node.
QuerySelectorAll executes querySelectorAll on a given node.
Redo re-does the last undone action.
RemoveAttribute removes attribute with given name from an element with given id.
RemoveNode removes node with given id.
RequestChildNodes requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.
RequestNode requests that the node is sent to the caller given the JavaScript node object reference.
ResolveNode resolves the JavaScript node object for a given NodeId or BackendNodeId.
ScrollIntoViewIfNeeded scrolls the specified rect of the given node into view if not already visible.
SetAttributesAsText sets attributes on element with given id.
SetAttributeValue sets attribute for an element with given id.
SetFileInputFiles sets files for the given file input element.
SetInspectedNode enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
SetNodeName sets node name for a node with given id.
SetNodeStackTracesEnabled sets if stack traces should be captured for Nodes.
SetNodeValue sets node value for a node with given id.
SetOuterHTML sets node HTML markup, returns new node id.
Undo undoes the last performed action.
# Constants
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
EnableIncludeWhitespace values.
EnableIncludeWhitespace values.
GetElementByRelationRelation values.
GetElementByRelationRelation values.
LogicalAxes values.
LogicalAxes values.
LogicalAxes values.
PhysicalAxes values.
PhysicalAxes values.
PhysicalAxes values.
ScrollOrientation values.
ScrollOrientation values.
# Structs
BoxModel box model.
CollectClassNamesFromSubtreeParams collects class names for the node with given id and all of it's child nodes.
CollectClassNamesFromSubtreeReturns return values.
CopyToParams creates a deep copy of the specified node and places it into the target container before the given anchor.
CopyToReturns return values.
CSSComputedStyleProperty [no description].
DescribeNodeParams describes node given its id, does not require domain to be enabled.
DescribeNodeReturns return values.
DetachedElementInfo a structure to hold the top-level node of a detached tree and an array of its retained descendants.
DisableParams disables DOM agent for the given page.
DiscardSearchResultsParams discards search results from the session with the given id.
EnableParams enables DOM agent for the given page.
EventAttributeModified fired when Element's attribute is modified.
EventAttributeRemoved fired when Element's attribute is removed.
EventCharacterDataModified mirrors DOMCharacterDataModified event.
EventChildNodeCountUpdated fired when Container's child node count has changed.
EventChildNodeInserted mirrors DOMNodeInserted event.
EventChildNodeRemoved mirrors DOMNodeRemoved event.
EventDistributedNodesUpdated called when distribution is changed.
EventDocumentUpdated fired when Document has been totally updated.
EventInlineStyleInvalidated fired when Element's inline style is modified via a CSS property modification.
EventPseudoElementAdded called when a pseudo element is added to an element.
EventPseudoElementRemoved called when a pseudo element is removed from an element.
EventScrollableFlagUpdated fired when a node's scrollability state changes.
EventSetChildNodes fired when backend wants to provide client with the missing DOM structure.
EventShadowRootPopped called when shadow root is popped from the element.
EventShadowRootPushed called when shadow root is pushed into the element.
EventTopLayerElementsUpdated called when top layer elements are changed.
FocusParams focuses the given element.
GetAnchorElementParams returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.
GetAnchorElementReturns return values.
GetAttributesParams returns attributes for the specified node.
GetAttributesReturns return values.
GetBoxModelParams returns boxes for the given node.
GetBoxModelReturns return values.
GetContainerForNodeParams returns the query container of the given node based on container query conditions: containerName, physical and logical axes, and whether it queries scroll-state.
GetContainerForNodeReturns return values.
GetContentQuadsParams returns quads that describe node position on the page.
GetContentQuadsReturns return values.
GetDetachedDomNodesParams returns list of detached nodes.
GetDetachedDomNodesReturns return values.
GetDocumentParams returns the root DOM node (and optionally the subtree) to the caller.
GetDocumentReturns return values.
GetElementByRelationParams returns the NodeId of the matched element according to certain relations.
GetElementByRelationReturns return values.
GetFileInfoParams returns file information for the given File wrapper.
GetFileInfoReturns return values.
GetFrameOwnerParams returns iframe node that owns iframe with the given domain.
GetFrameOwnerReturns return values.
GetNodeForLocationParams returns node id at given location.
GetNodeForLocationReturns return values.
GetNodesForSubtreeByStyleParams finds nodes with a given computed style in a subtree.
GetNodesForSubtreeByStyleReturns return values.
GetNodeStackTracesParams gets stack traces associated with a Node.
GetNodeStackTracesReturns return values.
GetOuterHTMLParams returns node's HTML markup.
GetOuterHTMLReturns return values.
GetQueryingDescendantsForContainerParams returns the descendants of a container query container that have container queries against this container.
GetQueryingDescendantsForContainerReturns return values.
GetRelayoutBoundaryParams returns the id of the nearest ancestor that is a relayout boundary.
GetRelayoutBoundaryReturns return values.
GetSearchResultsParams returns search results from given fromIndex to given toIndex from the search with the given identifier.
GetSearchResultsReturns return values.
GetTopLayerElementsParams returns NodeIds of current top layer elements.
GetTopLayerElementsReturns return values.
MarkUndoableStateParams marks last undoable state.
MoveToParams moves node into the new container, places it before the given anchor.
MoveToReturns return values.
PerformSearchParams searches for a given string in the DOM tree.
PerformSearchReturns return values.
PushNodeByPathToFrontendParams requests that the node is sent to the caller given its path.
PushNodeByPathToFrontendReturns return values.
PushNodesByBackendIDsToFrontendParams requests that a batch of nodes is sent to the caller given their backend node ids.
PushNodesByBackendIDsToFrontendReturns return values.
QuerySelectorAllParams executes querySelectorAll on a given node.
QuerySelectorAllReturns return values.
QuerySelectorParams executes querySelector on a given node.
QuerySelectorReturns return values.
Rect Rectangle.
RedoParams re-does the last undone action.
RemoveAttributeParams removes attribute with given name from an element with given id.
RemoveNodeParams removes node with given id.
RequestChildNodesParams requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.
RequestNodeParams requests that the node is sent to the caller given the JavaScript node object reference.
RequestNodeReturns return values.
ResolveNodeParams resolves the JavaScript node object for a given NodeId or BackendNodeId.
ResolveNodeReturns return values.
ScrollIntoViewIfNeededParams scrolls the specified rect of the given node into view if not already visible.
SetAttributesAsTextParams sets attributes on element with given id.
SetAttributeValueParams sets attribute for an element with given id.
SetFileInputFilesParams sets files for the given file input element.
SetInspectedNodeParams enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
SetNodeNameParams sets node name for a node with given id.
SetNodeNameReturns return values.
SetNodeStackTracesEnabledParams sets if stack traces should be captured for Nodes.
SetNodeValueParams sets node value for a node with given id.
SetOuterHTMLParams sets node HTML markup, returns new node id.
ShapeOutsideInfo CSS Shape Outside details.
UndoParams undoes the last performed action.
# Type aliases
EnableIncludeWhitespace whether to include whitespaces in the children array of returned Nodes.
GetElementByRelationRelation type of relation to get.
LogicalAxes containerSelector logical axes.
PhysicalAxes containerSelector physical axes.
Quad an array of quad vertices, x immediately followed by y for each point, points clock-wise.
ScrollOrientation physical scroll orientation.