开发协议Chrome DevTools Protocol
0.00
★13次@Google
A:赛忞初雪
开发协议Chrome DevTools Protocol
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.
DOM.getFlattenedDocument Deprecated
DOM.collectClassNamesFromSubtree Experimental
DOM.copyTo Experimental
DOM.discardSearchResults Experimental
DOM.forceShowPopover Experimental
DOM.getAnchorElement Experimental
DOM.getContainerForNode Experimental
DOM.getContentQuads Experimental
DOM.getDetachedDomNodes Experimental
DOM.getElementByRelation Experimental
DOM.getFileInfo Experimental
DOM.getFrameOwner Experimental
DOM.getNodesForSubtreeByStyle Experimental
DOM.getNodeStackTraces Experimental
DOM.getQueryingDescendantsForContainer Experimental
DOM.getRelayoutBoundary Experimental
DOM.getSearchResults Experimental
DOM.getTopLayerElements Experimental
DOM.markUndoableState Experimental
DOM.performSearch Experimental
DOM.pushNodeByPathToFrontend Experimental
DOM.pushNodesByBackendIdsToFrontend Experimental
DOM.redo Experimental
DOM.setInspectedNode Experimental
DOM.setNodeStackTracesEnabled Experimental
DOM.undo Experimental
DOM.distributedNodesUpdated Experimental
DOM.inlineStyleInvalidated Experimental
DOM.pseudoElementAdded Experimental
DOM.pseudoElementRemoved Experimental
DOM.scrollableFlagUpdated Experimental
DOM.shadowRootPopped Experimental
DOM.shadowRootPushed Experimental
DOM.topLayerElementsUpdated Experimental
Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.
nodeId
Identifier of the node.
backendNodeId
Identifier of the backend node.
objectId
JavaScript object id of the node wrapper.
depth
integer
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
boolean
Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
node
Node description.
Disables DOM agent for the given page.
Enables DOM agent for the given page.
includeWhitespace
string
Whether to include whitespaces in the children array of returned Nodes.
Allowed Values: none
, all
Experimental
Focuses the given element.
nodeId
Identifier of the node.
backendNodeId
Identifier of the backend node.
objectId
JavaScript object id of the node wrapper.
Returns attributes for the specified node.
nodeId
Id of the node to retrieve attributes for.
attributes
array[ string ]
An interleaved array of node attribute names and values.
Returns boxes for the given node.
nodeId
Identifier of the node.
backendNodeId
Identifier of the backend node.
objectId
JavaScript object id of the node wrapper.
model
Box model for the node.
Returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target.
depth
integer
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
boolean
Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
root
Resulting node.
Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.
x
integer
X coordinate.
y
integer
Y coordinate.
includeUserAgentShadowDOM
boolean
False to skip to the nearest non-UA shadow root ancestor (default: false).
ignorePointerEventsNone
boolean
Whether to ignore pointer-events: none on elements and hit test them.
backendNodeId
Resulting node.
frameId
Frame this node belongs to.
nodeId
Id of the node at given coordinates, only when enabled and requested document.
Returns node's HTML markup.
nodeId
Identifier of the node.
backendNodeId
Identifier of the backend node.
objectId
JavaScript object id of the node wrapper.
includeShadowDOM
boolean
Include all shadow roots. Equals to false if not specified.
Experimental
outerHTML
string
Outer HTML markup.
Hides any highlight.
Highlights DOM node.
Highlights given rectangle.
Moves node into the new container, places it before the given anchor.
nodeId
Id of the node to move.
targetNodeId
Id of the element to drop the moved node into.
insertBeforeNodeId
Drop node before this one (if absent, the moved node becomes the last child of targetNodeId
).
nodeId
New id of the moved node.
Executes querySelector
on a given node.
nodeId
Id of the node to query upon.
selector
string
Selector string.
nodeId
Query selector result.
Executes querySelectorAll
on a given node.
nodeId
Id of the node to query upon.
selector
string
Selector string.
nodeIds
array[ NodeId ]
Query selector result.
Removes attribute with given name from an element with given id.
nodeId
Id of the element to remove attribute from.
name
string
Name of the attribute to remove.
Removes node with given id.
nodeId
Id of the node to remove.
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.
nodeId
Id of the node to get children for.
depth
integer
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
boolean
Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).
Requests that the node is sent to the caller given the JavaScript node object reference. All no
硬件app