DOMClient Class |
Note that `iframe` owner elements will return corresponding document elements as their child nodes.
Namespace: CefSharp.DevTools.DOM
The DOMClient type exposes the following members.
Name | Description | |
---|---|---|
CollectClassNamesFromSubtreeAsync |
Collects class names for the node with given id and all of it's child nodes.
| |
CopyToAsync | ||
DescribeNodeAsync | ||
DisableAsync |
Disables DOM agent for the given page.
| |
DiscardSearchResultsAsync |
Discards search results from the session with the given id. `getSearchResults` should no longer
be called for that search.
| |
EnableAsync |
Enables DOM agent for the given page.
| |
EnumToString(Enum) | (Inherited from DevToolsDomainBase.) | |
EnumToString(PermissionType) | (Inherited from DevToolsDomainBase.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FocusAsync |
Focuses the given element.
| |
GetAttributesAsync |
Returns attributes for the specified node.
| |
GetBoxModelAsync |
Returns boxes for the given node.
| |
GetContentQuadsAsync |
Returns quads that describe node position on the page. This method
might return multiple quads for inline nodes.
| |
GetDocumentAsync | ||
GetFileInfoAsync |
Returns file information for the given
File wrapper.
| |
GetFrameOwnerAsync |
Returns iframe node that owns iframe with the given domain.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetNodeForLocationAsync |
Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is
either returned or not.
| |
GetNodesForSubtreeByStyleAsync | ||
GetNodeStackTracesAsync |
Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
| |
GetOuterHTMLAsync |
Returns node's HTML markup.
| |
GetRelayoutBoundaryAsync |
Returns the id of the nearest ancestor that is a relayout boundary.
| |
GetSearchResultsAsync |
Returns search results from given `fromIndex` to given `toIndex` from the search with the given
identifier.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HideHighlightAsync |
Hides any highlight.
| |
HighlightNodeAsync |
Highlights DOM node.
| |
HighlightRectAsync |
Highlights given rectangle.
| |
MarkUndoableStateAsync |
Marks last undoable state.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveToAsync | ||
PerformSearchAsync |
Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or
`cancelSearch` to end this search session.
| |
PushNodeByPathToFrontendAsync |
Requests that the node is sent to the caller given its path. // FIXME, use XPath
| |
PushNodesByBackendIdsToFrontendAsync |
Requests that a batch of nodes is sent to the caller given their backend node ids.
| |
QuerySelectorAllAsync |
Executes `querySelectorAll` on a given node.
| |
QuerySelectorAsync |
Executes `querySelector` on a given node.
| |
RedoAsync |
Re-does the last undone action.
| |
RemoveAttributeAsync |
Removes attribute with given name from an element with given id.
| |
RemoveNodeAsync |
Removes node with given id.
| |
RequestChildNodesAsync | ||
RequestNodeAsync |
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.
| |
ResolveNodeAsync |
Resolves the JavaScript node object for a given NodeId or BackendNodeId.
| |
ScrollIntoViewIfNeededAsync | ||
SetAttributesAsTextAsync | ||
SetAttributeValueAsync |
Sets attribute for an element with given id.
| |
SetFileInputFilesAsync |
Sets files for the given file input element.
| |
SetInspectedNodeAsync |
Enables console to refer to the node with given id via $x (see Command Line API for more details
$x functions).
| |
SetNodeNameAsync |
Sets node name for a node with given id.
| |
SetNodeStackTracesEnabledAsync |
Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.
| |
SetNodeValueAsync |
Sets node value for a node with given id.
| |
SetOuterHTMLAsync |
Sets node HTML markup, returns new node id.
| |
ToBase64String | (Inherited from DevToolsDomainBase.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UndoAsync |
Undoes the last performed action.
|