chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.dom

Package org.hildan.chrome.devtools.domains.dom

Types

BackendNode

Backend node with a friendly name.

data class BackendNode

BackendNodeId

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

typealias BackendNodeId = Int

BoxModel

Box model.

data class BoxModel

CollectClassNamesFromSubtreeRequest

Request object containing input parameters for the DOMDomain.collectClassNamesFromSubtree command.

data class CollectClassNamesFromSubtreeRequest

CollectClassNamesFromSubtreeResponse

Response type for the DOMDomain.collectClassNamesFromSubtree command.

data class CollectClassNamesFromSubtreeResponse

CopyToRequest

Request object containing input parameters for the DOMDomain.copyTo command.

data class CopyToRequest

CopyToResponse

Response type for the DOMDomain.copyTo command.

data class CopyToResponse

CSSComputedStyleProperty

data class CSSComputedStyleProperty

DescribeNodeRequest

Request object containing input parameters for the DOMDomain.describeNode command.

data class DescribeNodeRequest

DescribeNodeResponse

Response type for the DOMDomain.describeNode command.

data class DescribeNodeResponse

DiscardSearchResultsRequest

Request object containing input parameters for the DOMDomain.discardSearchResults command.

data class DiscardSearchResultsRequest

DOMDomain

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.

class DOMDomain

FocusRequest

Request object containing input parameters for the DOMDomain.focus command.

data class FocusRequest

GetAttributesRequest

Request object containing input parameters for the DOMDomain.getAttributes command.

data class GetAttributesRequest

GetAttributesResponse

Response type for the DOMDomain.getAttributes command.

data class GetAttributesResponse

GetBoxModelRequest

Request object containing input parameters for the DOMDomain.getBoxModel command.

data class GetBoxModelRequest

GetBoxModelResponse

Response type for the DOMDomain.getBoxModel command.

data class GetBoxModelResponse

GetContentQuadsRequest

Request object containing input parameters for the DOMDomain.getContentQuads command.

data class GetContentQuadsRequest

GetContentQuadsResponse

Response type for the DOMDomain.getContentQuads command.

data class GetContentQuadsResponse

GetDocumentRequest

Request object containing input parameters for the DOMDomain.getDocument command.

data class GetDocumentRequest

GetDocumentResponse

Response type for the DOMDomain.getDocument command.

data class GetDocumentResponse

GetFileInfoRequest

Request object containing input parameters for the DOMDomain.getFileInfo command.

data class GetFileInfoRequest

GetFileInfoResponse

Response type for the DOMDomain.getFileInfo command.

data class GetFileInfoResponse

GetFlattenedDocumentRequest

Request object containing input parameters for the DOMDomain.getFlattenedDocument command.

data class GetFlattenedDocumentRequest

GetFlattenedDocumentResponse

Response type for the DOMDomain.getFlattenedDocument command.

data class GetFlattenedDocumentResponse

GetFrameOwnerRequest

Request object containing input parameters for the DOMDomain.getFrameOwner command.

data class GetFrameOwnerRequest

GetFrameOwnerResponse

Response type for the DOMDomain.getFrameOwner command.

data class GetFrameOwnerResponse

GetNodeForLocationRequest

Request object containing input parameters for the DOMDomain.getNodeForLocation command.

data class GetNodeForLocationRequest

GetNodeForLocationResponse

Response type for the DOMDomain.getNodeForLocation command.

data class GetNodeForLocationResponse

GetNodesForSubtreeByStyleRequest

Request object containing input parameters for the DOMDomain.getNodesForSubtreeByStyle command.

data class GetNodesForSubtreeByStyleRequest

GetNodesForSubtreeByStyleResponse

Response type for the DOMDomain.getNodesForSubtreeByStyle command.

data class GetNodesForSubtreeByStyleResponse

GetNodeStackTracesRequest

Request object containing input parameters for the DOMDomain.getNodeStackTraces command.

data class GetNodeStackTracesRequest

GetNodeStackTracesResponse

Response type for the DOMDomain.getNodeStackTraces command.

data class GetNodeStackTracesResponse

GetOuterHTMLRequest

Request object containing input parameters for the DOMDomain.getOuterHTML command.

data class GetOuterHTMLRequest

GetOuterHTMLResponse

Response type for the DOMDomain.getOuterHTML command.

data class GetOuterHTMLResponse

GetRelayoutBoundaryRequest

Request object containing input parameters for the DOMDomain.getRelayoutBoundary command.

data class GetRelayoutBoundaryRequest

GetRelayoutBoundaryResponse

Response type for the DOMDomain.getRelayoutBoundary command.

data class GetRelayoutBoundaryResponse

GetSearchResultsRequest

Request object containing input parameters for the DOMDomain.getSearchResults command.

data class GetSearchResultsRequest

GetSearchResultsResponse

Response type for the DOMDomain.getSearchResults command.

data class GetSearchResultsResponse

MoveToRequest

Request object containing input parameters for the DOMDomain.moveTo command.

data class MoveToRequest

MoveToResponse

Response type for the DOMDomain.moveTo command.

data class MoveToResponse

Node

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

data class Node

NodeId

Unique DOM node identifier.

typealias NodeId = Int

PerformSearchRequest

Request object containing input parameters for the DOMDomain.performSearch command.

data class PerformSearchRequest

PerformSearchResponse

Response type for the DOMDomain.performSearch command.

data class PerformSearchResponse

PseudoType

Pseudo element type.

enum class PseudoType

PushNodeByPathToFrontendRequest

Request object containing input parameters for the DOMDomain.pushNodeByPathToFrontend command.

data class PushNodeByPathToFrontendRequest

PushNodeByPathToFrontendResponse

Response type for the DOMDomain.pushNodeByPathToFrontend command.

data class PushNodeByPathToFrontendResponse

PushNodesByBackendIdsToFrontendRequest

Request object containing input parameters for the DOMDomain.pushNodesByBackendIdsToFrontend command.

data class PushNodesByBackendIdsToFrontendRequest

PushNodesByBackendIdsToFrontendResponse

Response type for the DOMDomain.pushNodesByBackendIdsToFrontend command.

data class PushNodesByBackendIdsToFrontendResponse

Quad

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

typealias Quad = List<Double>

QuerySelectorAllRequest

Request object containing input parameters for the DOMDomain.querySelectorAll command.

data class QuerySelectorAllRequest

QuerySelectorAllResponse

Response type for the DOMDomain.querySelectorAll command.

data class QuerySelectorAllResponse

QuerySelectorRequest

Request object containing input parameters for the DOMDomain.querySelector command.

data class QuerySelectorRequest

QuerySelectorResponse

Response type for the DOMDomain.querySelector command.

data class QuerySelectorResponse

Rect

Rectangle.

data class Rect

RemoveAttributeRequest

Request object containing input parameters for the DOMDomain.removeAttribute command.

data class RemoveAttributeRequest

RemoveNodeRequest

Request object containing input parameters for the DOMDomain.removeNode command.

data class RemoveNodeRequest

RequestChildNodesRequest

Request object containing input parameters for the DOMDomain.requestChildNodes command.

data class RequestChildNodesRequest

RequestNodeRequest

Request object containing input parameters for the DOMDomain.requestNode command.

data class RequestNodeRequest

RequestNodeResponse

Response type for the DOMDomain.requestNode command.

data class RequestNodeResponse

ResolveNodeRequest

Request object containing input parameters for the DOMDomain.resolveNode command.

data class ResolveNodeRequest

ResolveNodeResponse

Response type for the DOMDomain.resolveNode command.

data class ResolveNodeResponse

RGBA

A structure holding an RGBA color.

data class RGBA

ScrollIntoViewIfNeededRequest

Request object containing input parameters for the DOMDomain.scrollIntoViewIfNeeded command.

data class ScrollIntoViewIfNeededRequest

SetAttributesAsTextRequest

Request object containing input parameters for the DOMDomain.setAttributesAsText command.

data class SetAttributesAsTextRequest

SetAttributeValueRequest

Request object containing input parameters for the DOMDomain.setAttributeValue command.

data class SetAttributeValueRequest

SetFileInputFilesRequest

Request object containing input parameters for the DOMDomain.setFileInputFiles command.

data class SetFileInputFilesRequest

SetInspectedNodeRequest

Request object containing input parameters for the DOMDomain.setInspectedNode command.

data class SetInspectedNodeRequest

SetNodeNameRequest

Request object containing input parameters for the DOMDomain.setNodeName command.

data class SetNodeNameRequest

SetNodeNameResponse

Response type for the DOMDomain.setNodeName command.

data class SetNodeNameResponse

SetNodeStackTracesEnabledRequest

Request object containing input parameters for the DOMDomain.setNodeStackTracesEnabled command.

data class SetNodeStackTracesEnabledRequest

SetNodeValueRequest

Request object containing input parameters for the DOMDomain.setNodeValue command.

data class SetNodeValueRequest

SetOuterHTMLRequest

Request object containing input parameters for the DOMDomain.setOuterHTML command.

data class SetOuterHTMLRequest

ShadowRootType

Shadow root type.

enum class ShadowRootType

ShapeOutsideInfo

CSS Shape Outside details.

data class ShapeOutsideInfo

Functions

findNodeBySelector

Retrieves the ID of the node corresponding to the given selector, or null if not found.

suspend fun DOMDomain.findNodeBySelector(selector: String): NodeId?

focusNodeBySelector

Moves the focus to the node corresponding to the given selector, or null if not found.

suspend fun DOMDomain.focusNodeBySelector(selector: String): Unit

getDocumentRootNodeId

Retrieves the ID of the root node of the current document.

suspend fun DOMDomain.getDocumentRootNodeId(): NodeId