Table of Contents

Namespace OpenQA.Selenium.DevTools.V148.DOM

Classes

AdRelatedStateUpdatedEventArgs

Fired when a node's ad related state changes.

AdoptedStyleSheetsModifiedEventArgs

Fired when Element's adoptedStyleSheets are modified.

AffectedByStartingStylesFlagUpdatedEventArgs

Fired when a node's starting styles changes.

AttributeModifiedEventArgs

Fired when Element's attribute is modified.

AttributeRemovedEventArgs

Fired when Element's attribute is removed.

BackendNode

Backend node with a friendly name.

BoxModel

Box model.

CSSComputedStyleProperty

CSSComputedStyleProperty

CharacterDataModifiedEventArgs

Mirrors DOMCharacterDataModified event.

ChildNodeCountUpdatedEventArgs

Fired when Container's child node count has changed.

ChildNodeInsertedEventArgs

Mirrors DOMNodeInserted event.

ChildNodeRemovedEventArgs

Mirrors DOMNodeRemoved event.

CollectClassNamesFromSubtreeCommandResponse

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

CollectClassNamesFromSubtreeCommandSettings

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

CopyToCommandResponse

Response for Creates a deep copy of the specified node and places it into the target container before the given anchor.

CopyToCommandSettings

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

DOMAdapter

Represents an adapter for the DOM domain to simplify the command interface.

DescribeNodeCommandResponse

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

DescribeNodeCommandSettings

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

DetachedElementInfo

A structure to hold the top-level node of a detached tree and an array of its retained descendants.

DisableCommandResponse

Response for Disables DOM agent for the given page.

DisableCommandSettings

Disables DOM agent for the given page.

DiscardSearchResultsCommandResponse

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

DiscardSearchResultsCommandSettings

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

DistributedNodesUpdatedEventArgs

Called when distribution is changed.

DocumentUpdatedEventArgs

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

EnableCommandResponse

Response for Enables DOM agent for the given page.

EnableCommandSettings

Enables DOM agent for the given page.

FocusCommandResponse

Response for Focuses the given element.

FocusCommandSettings

Focuses the given element.

ForceShowPopoverCommandResponse

Response for When enabling, this API force-opens the popover identified by nodeId and keeps it open until disabled.

ForceShowPopoverCommandSettings

When enabling, this API force-opens the popover identified by nodeId and keeps it open until disabled.

GetAnchorElementCommandResponse

Response for Returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.

GetAnchorElementCommandSettings

Returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.

GetAttributesCommandResponse

Response for Returns attributes for the specified node.

GetAttributesCommandSettings

Returns attributes for the specified node.

GetBoxModelCommandResponse

Response for Returns boxes for the given node.

GetBoxModelCommandSettings

Returns boxes for the given node.

GetContainerForNodeCommandResponse

Response for Returns the query container of the given node based on container query conditions: containerName, physical and logical axes, and whether it queries scroll-state or anchored elements. If no axes are provided and queriesScrollState is false, the style container is returned, which is the direct parent or the closest element with a matching container-name.

GetContainerForNodeCommandSettings

Returns the query container of the given node based on container query conditions: containerName, physical and logical axes, and whether it queries scroll-state or anchored elements. If no axes are provided and queriesScrollState is false, the style container is returned, which is the direct parent or the closest element with a matching container-name.

GetContentQuadsCommandResponse

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

GetContentQuadsCommandSettings

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

GetDetachedDomNodesCommandResponse

Response for Returns list of detached nodes

GetDetachedDomNodesCommandSettings

Returns list of detached nodes

GetDocumentCommandResponse

Response for Returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target.

GetDocumentCommandSettings

Returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target.

GetElementByRelationCommandResponse

Response for Returns the NodeId of the matched element according to certain relations.

GetElementByRelationCommandSettings

Returns the NodeId of the matched element according to certain relations.

GetFileInfoCommandResponse

Response for Returns file information for the given File wrapper.

GetFileInfoCommandSettings

Returns file information for the given File wrapper.

GetFlattenedDocumentCommandResponse

Response for Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.

GetFlattenedDocumentCommandSettings

Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.

GetFrameOwnerCommandResponse

Response for Returns iframe node that owns iframe with the given domain.

GetFrameOwnerCommandSettings

Returns iframe node that owns iframe with the given domain.

GetNodeForLocationCommandResponse

Response for Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.

GetNodeForLocationCommandSettings

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

GetNodeStackTracesCommandResponse

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

GetNodeStackTracesCommandSettings

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

GetNodesForSubtreeByStyleCommandResponse

Response for Finds nodes with a given computed style in a subtree.

GetNodesForSubtreeByStyleCommandSettings

Finds nodes with a given computed style in a subtree.

GetOuterHTMLCommandResponse

Response for Returns node's HTML markup.

GetOuterHTMLCommandSettings

Returns node's HTML markup.

GetQueryingDescendantsForContainerCommandResponse

Response for Returns the descendants of a container query container that have container queries against this container.

GetQueryingDescendantsForContainerCommandSettings

Returns the descendants of a container query container that have container queries against this container.

GetRelayoutBoundaryCommandResponse

Response for Returns the id of the nearest ancestor that is a relayout boundary.

GetRelayoutBoundaryCommandSettings

Returns the id of the nearest ancestor that is a relayout boundary.

GetSearchResultsCommandResponse

Response for Returns search results from given fromIndex to given toIndex from the search with the given identifier.

GetSearchResultsCommandSettings

Returns search results from given fromIndex to given toIndex from the search with the given identifier.

GetTopLayerElementsCommandResponse

Response for Returns NodeIds of current top layer elements. Top layer is rendered closest to the user within a viewport, therefore its elements always appear on top of all other content.

GetTopLayerElementsCommandSettings

Returns NodeIds of current top layer elements. Top layer is rendered closest to the user within a viewport, therefore its elements always appear on top of all other content.

HideHighlightCommandResponse

Response for Hides any highlight.

HideHighlightCommandSettings

Hides any highlight.

HighlightNodeCommandResponse

Response for Highlights DOM node.

HighlightNodeCommandSettings

Highlights DOM node.

HighlightRectCommandResponse

Response for Highlights given rectangle.

HighlightRectCommandSettings

Highlights given rectangle.

InlineStyleInvalidatedEventArgs

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

MarkUndoableStateCommandResponse

Response for Marks last undoable state.

MarkUndoableStateCommandSettings

Marks last undoable state.

MoveToCommandResponse

Response for Moves node into the new container, places it before the given anchor.

MoveToCommandSettings

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

Node

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

PerformSearchCommandResponse

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

PerformSearchCommandSettings

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

PseudoElementAddedEventArgs

Called when a pseudo element is added to an element.

PseudoElementRemovedEventArgs

Called when a pseudo element is removed from an element.

PushNodeByPathToFrontendCommandResponse

Response for Requests that the node is sent to the caller given its path. // FIXME, use XPath

PushNodeByPathToFrontendCommandSettings

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

PushNodesByBackendIdsToFrontendCommandResponse

Response for Requests that a batch of nodes is sent to the caller given their backend node ids.

PushNodesByBackendIdsToFrontendCommandSettings

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

QuerySelectorAllCommandResponse

Response for Executes querySelectorAll on a given node.

QuerySelectorAllCommandSettings

Executes querySelectorAll on a given node.

QuerySelectorCommandResponse

Response for Executes querySelector on a given node.

QuerySelectorCommandSettings

Executes querySelector on a given node.

RGBA

A structure holding an RGBA color.

Rect

Rectangle.

RedoCommandResponse

Response for Re-does the last undone action.

RedoCommandSettings

Re-does the last undone action.

RemoveAttributeCommandResponse

Response for Removes attribute with given name from an element with given id.

RemoveAttributeCommandSettings

Removes attribute with given name from an element with given id.

RemoveNodeCommandResponse

Response for Removes node with given id.

RemoveNodeCommandSettings

Removes node with given id.

RequestChildNodesCommandResponse

Response for 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.

RequestChildNodesCommandSettings

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.

RequestNodeCommandResponse

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

RequestNodeCommandSettings

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

ResolveNodeCommandResponse

Response for Resolves the JavaScript node object for a given NodeId or BackendNodeId.

ResolveNodeCommandSettings

Resolves the JavaScript node object for a given NodeId or BackendNodeId.

ScrollIntoViewIfNeededCommandResponse

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

ScrollIntoViewIfNeededCommandSettings

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

ScrollableFlagUpdatedEventArgs

Fired when a node's scrollability state changes.

SetAttributeValueCommandResponse

Response for Sets attribute for an element with given id.

SetAttributeValueCommandSettings

Sets attribute for an element with given id.

SetAttributesAsTextCommandResponse

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

SetAttributesAsTextCommandSettings

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

SetChildNodesEventArgs

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

SetFileInputFilesCommandResponse

Response for Sets files for the given file input element.

SetFileInputFilesCommandSettings

Sets files for the given file input element.

SetInspectedNodeCommandResponse

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

SetInspectedNodeCommandSettings

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

SetNodeNameCommandResponse

Response for Sets node name for a node with given id.

SetNodeNameCommandSettings

Sets node name for a node with given id.

SetNodeStackTracesEnabledCommandResponse

Response for Sets if stack traces should be captured for Nodes. See Node.getNodeStackTraces. Default is disabled.

SetNodeStackTracesEnabledCommandSettings

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

SetNodeValueCommandResponse

Response for Sets node value for a node with given id.

SetNodeValueCommandSettings

Sets node value for a node with given id.

SetOuterHTMLCommandResponse

Response for Sets node HTML markup, returns new node id.

SetOuterHTMLCommandSettings

Sets node HTML markup, returns new node id.

ShadowRootPoppedEventArgs

Called when shadow root is popped from the element.

ShadowRootPushedEventArgs

Called when shadow root is pushed into the element.

ShapeOutsideInfo

CSS Shape Outside details.

TopLayerElementsUpdatedEventArgs

Called when top layer elements are changed.

UndoCommandResponse

Response for Undoes the last performed action.

UndoCommandSettings

Undoes the last performed action.

Enums

CompatibilityMode

Document compatibility mode.

LogicalAxes

ContainerSelector logical axes

PhysicalAxes

ContainerSelector physical axes

PseudoType

Pseudo element type.

ScrollOrientation

Physical scroll orientation

ShadowRootType

Shadow root type.