Expand description

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

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

Structs

Backend node with a friendly name. BackendNode

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

Box model. BoxModel

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

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

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

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

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

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

Disables DOM agent for the given page. disable

Disables DOM agent for the given page. disable

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

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

Enables DOM agent for the given page. enable

Enables DOM agent for the given page. enable

Fired when Element’s attribute is modified. attributeModified

Fired when Element’s attribute is removed. attributeRemoved

Mirrors DOMCharacterDataModified event. characterDataModified

Fired when Container’s child node count has changed. childNodeCountUpdated

Mirrors DOMNodeInserted event. childNodeInserted

Mirrors DOMNodeRemoved event. childNodeRemoved

Called when distrubution is changed. distributedNodesUpdated

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

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

Called when a pseudo element is added to an element. pseudoElementAdded

Called when a pseudo element is removed from an element. pseudoElementRemoved

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

Called when shadow root is popped from the element. shadowRootPopped

Called when shadow root is pushed into the element. shadowRootPushed

Focuses the given element. focus

Focuses the given element. focus

Returns attributes for the specified node. getAttributes

Returns attributes for the specified node. getAttributes

Returns boxes for the given node. getBoxModel

Returns boxes for the given node. getBoxModel

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

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

Returns the root DOM node (and optionally the subtree) to the caller. getDocument

Returns the root DOM node (and optionally the subtree) to the caller. getDocument

Returns file information for the given File wrapper. getFileInfo

Returns file information for the given File wrapper. getFileInfo

Returns iframe node that owns iframe with the given domain. getFrameOwner

Returns iframe node that owns iframe with the given domain. getFrameOwner

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

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

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

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

Finds nodes with a given computed style in a subtree. getNodesForSubtreeByStyle

Finds nodes with a given computed style in a subtree. getNodesForSubtreeByStyle

Returns node’s HTML markup. getOuterHTML

Returns node’s HTML markup. getOuterHTML

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

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

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

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

Hides any highlight. hideHighlight

Hides any highlight. hideHighlight

Highlights DOM node. highlightNode

Highlights DOM node. highlightNode

Highlights given rectangle. highlightRect

Highlights given rectangle. highlightRect

Marks last undoable state. markUndoableState

Marks last undoable state. markUndoableState

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

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

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

Unique DOM node identifier. NodeId

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

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

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

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

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

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

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

Executes querySelectorAll on a given node. querySelectorAll

Executes querySelectorAll on a given node. querySelectorAll

Executes querySelector on a given node. querySelector

Executes querySelector on a given node. querySelector

Rectangle. Rect

Re-does the last undone action. redo

Re-does the last undone action. redo

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

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

Removes node with given id. removeNode

Removes node with given id. removeNode

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. 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. requestChildNodes

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. requestNode

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

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

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

A structure holding an RGBA color. RGBA

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. scrollIntoViewIfNeeded

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

Sets attribute for an element with given id. setAttributeValue

Sets attribute for an element with given id. setAttributeValue

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. setAttributesAsText

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

Sets files for the given file input element. setFileInputFiles

Sets files for the given file input element. setFileInputFiles

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

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

Sets node name for a node with given id. setNodeName

Sets node name for a node with given id. setNodeName

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

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

Sets node value for a node with given id. setNodeValue

Sets node value for a node with given id. setNodeValue

Sets node HTML markup, returns new node id. setOuterHTML

Sets node HTML markup, returns new node id. setOuterHTML

CSS Shape Outside details. ShapeOutsideInfo

Undoes the last performed action. undo

Undoes the last performed action. undo

Enums

Pseudo element type.

Shadow root type.