Package-level declarations

Types

Link copied to clipboard
@Serializable
data class BackendNode(val nodeType: Int, val nodeName: String, val backendNodeId: BackendNodeId)

Backend node with a friendly name.

Link copied to clipboard
typealias BackendNodeId = Int

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

Official doc

Link copied to clipboard
@Serializable
data class BoxModel(val content: Quad, val padding: Quad, val border: Quad, val margin: Quad, val width: Int, val height: Int, val shapeOutside: ShapeOutsideInfo? = null)

Box model.

Link copied to clipboard
@Serializable
data class CollectClassNamesFromSubtreeRequest(val nodeId: NodeId)

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

Link copied to clipboard
@Serializable
data class CollectClassNamesFromSubtreeResponse(val classNames: List<String>)

Response type for the DOMDomain.collectClassNamesFromSubtree command.

Link copied to clipboard

Document compatibility mode.

Link copied to clipboard
@Serializable
data class CopyToRequest(val nodeId: NodeId, val targetNodeId: NodeId, val insertBeforeNodeId: NodeId? = null)

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

Link copied to clipboard
@Serializable
data class CopyToResponse(val nodeId: NodeId)

Response type for the DOMDomain.copyTo command.

Link copied to clipboard
@Serializable
data class CSSComputedStyleProperty(val name: String, val value: String)
Link copied to clipboard
typealias CssSelector = String

A CSS selector string, as defined by the W3C.

Link copied to clipboard
@Serializable
data class DescribeNodeRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null, val depth: Int? = null, val pierce: Boolean? = null)

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

Link copied to clipboard
@Serializable
data class DescribeNodeResponse(val node: Node)

Response type for the DOMDomain.describeNode command.

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the DOMDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class DiscardSearchResultsRequest(val searchId: String)

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

Link copied to clipboard
@Serializable
object DiscardSearchResultsResponse

A dummy response object for the DOMDomain.discardSearchResults command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
class DOMAttributes(attributesMap: Map<String, String>) : Map<String, String>

Represents HTML attributes of a DOM element.

Link copied to clipboard
class 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.

Link copied to clipboard
@Serializable
data class EnableRequest(val includeWhitespace: IncludeWhitespace? = null)

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

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the DOMDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class FocusRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null)

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

Link copied to clipboard
@Serializable
object FocusResponse

A dummy response object for the DOMDomain.focus command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class GetAttributesRequest(val nodeId: NodeId)

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

Link copied to clipboard
@Serializable
data class GetAttributesResponse(val attributes: List<String>)

Response type for the DOMDomain.getAttributes command.

Link copied to clipboard
@Serializable
data class GetBoxModelRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null)

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

Link copied to clipboard
@Serializable
data class GetBoxModelResponse(val model: BoxModel)

Response type for the DOMDomain.getBoxModel command.

Link copied to clipboard
@Serializable
data class GetContainerForNodeRequest(val nodeId: NodeId, val containerName: String? = null, val physicalAxes: PhysicalAxes? = null, val logicalAxes: LogicalAxes? = null)

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

Link copied to clipboard
@Serializable
data class GetContainerForNodeResponse(val nodeId: NodeId? = null)

Response type for the DOMDomain.getContainerForNode command.

Link copied to clipboard
@Serializable
data class GetContentQuadsRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null)

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

Link copied to clipboard
@Serializable
data class GetContentQuadsResponse(val quads: List<Quad>)

Response type for the DOMDomain.getContentQuads command.

Link copied to clipboard
@Serializable
data class GetDocumentRequest(val depth: Int? = null, val pierce: Boolean? = null)

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

Link copied to clipboard
@Serializable
data class GetDocumentResponse(val root: Node)

Response type for the DOMDomain.getDocument command.

Link copied to clipboard
@Serializable
data class GetFileInfoRequest(val objectId: RemoteObjectId)

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

Link copied to clipboard
@Serializable
data class GetFileInfoResponse(val path: String)

Response type for the DOMDomain.getFileInfo command.

Link copied to clipboard
@Serializable
data class GetFlattenedDocumentRequest(val depth: Int? = null, val pierce: Boolean? = null)

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

Link copied to clipboard
@Serializable
data class GetFlattenedDocumentResponse(val nodes: List<Node>)

Response type for the DOMDomain.getFlattenedDocument command.

Link copied to clipboard
@Serializable
data class GetFrameOwnerRequest(val frameId: FrameId)

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

Link copied to clipboard
@Serializable
data class GetFrameOwnerResponse(val backendNodeId: BackendNodeId, val nodeId: NodeId? = null)

Response type for the DOMDomain.getFrameOwner command.

Link copied to clipboard
@Serializable
data class GetNodeForLocationRequest(val x: Int, val y: Int, val includeUserAgentShadowDOM: Boolean? = null, val ignorePointerEventsNone: Boolean? = null)

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

Link copied to clipboard
@Serializable
data class GetNodeForLocationResponse(val backendNodeId: BackendNodeId, val frameId: FrameId, val nodeId: NodeId? = null)

Response type for the DOMDomain.getNodeForLocation command.

Link copied to clipboard
@Serializable
data class GetNodesForSubtreeByStyleRequest(val nodeId: NodeId, val computedStyles: List<CSSComputedStyleProperty>, val pierce: Boolean? = null)

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

Link copied to clipboard
@Serializable
data class GetNodesForSubtreeByStyleResponse(val nodeIds: List<NodeId>)

Response type for the DOMDomain.getNodesForSubtreeByStyle command.

Link copied to clipboard
@Serializable
data class GetNodeStackTracesRequest(val nodeId: NodeId)

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

Link copied to clipboard
@Serializable
data class GetNodeStackTracesResponse(val creation: StackTrace? = null)

Response type for the DOMDomain.getNodeStackTraces command.

Link copied to clipboard
@Serializable
data class GetOuterHTMLRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null)

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

Link copied to clipboard
@Serializable
data class GetOuterHTMLResponse(val outerHTML: String)

Response type for the DOMDomain.getOuterHTML command.

@Serializable
data class GetQueryingDescendantsForContainerRequest(val nodeId: NodeId)

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

@Serializable
data class GetQueryingDescendantsForContainerResponse(val nodeIds: List<NodeId>)

Response type for the DOMDomain.getQueryingDescendantsForContainer command.

Link copied to clipboard
@Serializable
data class GetRelayoutBoundaryRequest(val nodeId: NodeId)

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

Link copied to clipboard
@Serializable
data class GetRelayoutBoundaryResponse(val nodeId: NodeId)

Response type for the DOMDomain.getRelayoutBoundary command.

Link copied to clipboard
@Serializable
data class GetSearchResultsRequest(val searchId: String, val fromIndex: Int, val toIndex: Int)

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

Link copied to clipboard
@Serializable
data class GetSearchResultsResponse(val nodeIds: List<NodeId>)

Response type for the DOMDomain.getSearchResults command.

Link copied to clipboard
@Serializable
data class GetTopLayerElementsResponse(val nodeIds: List<NodeId>)

Response type for the DOMDomain.getTopLayerElements command.

Link copied to clipboard
@Serializable
object HideHighlightResponse

A dummy response object for the DOMDomain.hideHighlight command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object HighlightNodeResponse

A dummy response object for the DOMDomain.highlightNode command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object HighlightRectResponse

A dummy response object for the DOMDomain.highlightRect command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
enum LogicalAxes : Enum<LogicalAxes>

ContainerSelector logical axes

Link copied to clipboard
@Serializable
object MarkUndoableStateResponse

A dummy response object for the DOMDomain.markUndoableState command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class MoveToRequest(val nodeId: NodeId, val targetNodeId: NodeId, val insertBeforeNodeId: NodeId? = null)

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

Link copied to clipboard
@Serializable
data class MoveToResponse(val nodeId: NodeId)

Response type for the DOMDomain.moveTo command.

Link copied to clipboard
@Serializable
data class Node(val nodeId: NodeId, val parentId: NodeId? = null, val backendNodeId: BackendNodeId, val nodeType: Int, val nodeName: String, val localName: String, val nodeValue: String, val childNodeCount: Int? = null, val children: List<Node>? = null, val attributes: List<String>? = null, val documentURL: String? = null, val baseURL: String? = null, val publicId: String? = null, val systemId: String? = null, val internalSubset: String? = null, val xmlVersion: String? = null, val name: String? = null, val value: String? = null, val pseudoType: PseudoType? = null, val pseudoIdentifier: String? = null, val shadowRootType: ShadowRootType? = null, val frameId: FrameId? = null, val contentDocument: Node? = null, val shadowRoots: List<Node>? = null, val templateContent: Node? = null, val pseudoElements: List<Node>? = null, val importedDocument: Node? = null, val distributedNodes: List<BackendNode>? = null, val isSVG: Boolean? = null, val compatibilityMode: CompatibilityMode? = null, val assignedSlot: BackendNode? = null)

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

Link copied to clipboard
typealias NodeId = Int

Unique DOM node identifier.

Official doc

Link copied to clipboard
@Serializable
data class PerformSearchRequest(val query: String, val includeUserAgentShadowDOM: Boolean? = null)

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

Link copied to clipboard
@Serializable
data class PerformSearchResponse(val searchId: String, val resultCount: Int)

Response type for the DOMDomain.performSearch command.

Link copied to clipboard
@Serializable
enum PhysicalAxes : Enum<PhysicalAxes>

ContainerSelector physical axes

Link copied to clipboard
@Serializable
enum PseudoType : Enum<PseudoType>

Pseudo element type.

Link copied to clipboard
@Serializable
data class PushNodeByPathToFrontendRequest(val path: String)

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

Link copied to clipboard
@Serializable
data class PushNodeByPathToFrontendResponse(val nodeId: NodeId)

Response type for the DOMDomain.pushNodeByPathToFrontend command.

Link copied to clipboard
@Serializable
data class PushNodesByBackendIdsToFrontendRequest(val backendNodeIds: List<BackendNodeId>)

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

Link copied to clipboard
@Serializable
data class PushNodesByBackendIdsToFrontendResponse(val nodeIds: List<NodeId>)

Response type for the DOMDomain.pushNodesByBackendIdsToFrontend command.

Link copied to clipboard
typealias Quad = List<Double>

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

Official doc

Link copied to clipboard
@Serializable
data class QuerySelectorAllRequest(val nodeId: NodeId, val selector: String)

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

Link copied to clipboard
@Serializable
data class QuerySelectorAllResponse(val nodeIds: List<NodeId>)

Response type for the DOMDomain.querySelectorAll command.

Link copied to clipboard
@Serializable
data class QuerySelectorRequest(val nodeId: NodeId, val selector: String)

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

Link copied to clipboard
@Serializable
data class QuerySelectorResponse(val nodeId: NodeId)

Response type for the DOMDomain.querySelector command.

Link copied to clipboard
@Serializable
data class Rect(val x: Double, val y: Double, val width: Double, val height: Double)

Rectangle.

Link copied to clipboard
@Serializable
object RedoResponse

A dummy response object for the DOMDomain.redo command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class RemoveAttributeRequest(val nodeId: NodeId, val name: String)

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

Link copied to clipboard
@Serializable
object RemoveAttributeResponse

A dummy response object for the DOMDomain.removeAttribute command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class RemoveNodeRequest(val nodeId: NodeId)

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

Link copied to clipboard
@Serializable
object RemoveNodeResponse

A dummy response object for the DOMDomain.removeNode command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class RequestChildNodesRequest(val nodeId: NodeId, val depth: Int? = null, val pierce: Boolean? = null)

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

Link copied to clipboard
@Serializable
object RequestChildNodesResponse

A dummy response object for the DOMDomain.requestChildNodes command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class RequestNodeRequest(val objectId: RemoteObjectId)

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

Link copied to clipboard
@Serializable
data class RequestNodeResponse(val nodeId: NodeId)

Response type for the DOMDomain.requestNode command.

Link copied to clipboard
@Serializable
data class ResolveNodeRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectGroup: String? = null, val executionContextId: ExecutionContextId? = null)

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

Link copied to clipboard
@Serializable
data class ResolveNodeResponse(val object: RemoteObject)

Response type for the DOMDomain.resolveNode command.

Link copied to clipboard
@Serializable
data class RGBA(val r: Int, val g: Int, val b: Int, val a: Double? = null)

A structure holding an RGBA color.

Link copied to clipboard
@Serializable
data class ScrollIntoViewIfNeededRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null, val rect: Rect? = null)

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

Link copied to clipboard
@Serializable
object ScrollIntoViewIfNeededResponse

A dummy response object for the DOMDomain.scrollIntoViewIfNeeded command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetAttributesAsTextRequest(val nodeId: NodeId, val text: String, val name: String? = null)

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

Link copied to clipboard
@Serializable
object SetAttributesAsTextResponse

A dummy response object for the DOMDomain.setAttributesAsText command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetAttributeValueRequest(val nodeId: NodeId, val name: String, val value: String)

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

Link copied to clipboard
@Serializable
object SetAttributeValueResponse

A dummy response object for the DOMDomain.setAttributeValue command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetFileInputFilesRequest(val files: List<String>, val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null)

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

Link copied to clipboard
@Serializable
object SetFileInputFilesResponse

A dummy response object for the DOMDomain.setFileInputFiles command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetInspectedNodeRequest(val nodeId: NodeId)

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

Link copied to clipboard
@Serializable
object SetInspectedNodeResponse

A dummy response object for the DOMDomain.setInspectedNode command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetNodeNameRequest(val nodeId: NodeId, val name: String)

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

Link copied to clipboard
@Serializable
data class SetNodeNameResponse(val nodeId: NodeId)

Response type for the DOMDomain.setNodeName command.

Link copied to clipboard
@Serializable
data class SetNodeStackTracesEnabledRequest(val enable: Boolean)

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

Link copied to clipboard

A dummy response object for the DOMDomain.setNodeStackTracesEnabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetNodeValueRequest(val nodeId: NodeId, val value: String)

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

Link copied to clipboard
@Serializable
object SetNodeValueResponse

A dummy response object for the DOMDomain.setNodeValue command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetOuterHTMLRequest(val nodeId: NodeId, val outerHTML: String)

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

Link copied to clipboard
@Serializable
object SetOuterHTMLResponse

A dummy response object for the DOMDomain.setOuterHTML command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum ShadowRootType : Enum<ShadowRootType>

Shadow root type.

Link copied to clipboard
@Serializable
data class ShapeOutsideInfo(val bounds: Quad, val shape: List<JsonElement>, val marginShape: List<JsonElement>)

CSS Shape Outside details.

Link copied to clipboard
@Serializable
object UndoResponse

A dummy response object for the DOMDomain.undo command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Functions

Link copied to clipboard
suspend fun DOMDomain.awaitNodeAbsentBySelector(selector: CssSelector, pollingPeriod: Duration = 200.milliseconds)

Waits until the given selector matches no node in the DOM. Inspects the DOM every pollingPeriod.

Link copied to clipboard
suspend fun DOMDomain.awaitNodeBySelector(selector: CssSelector, pollingPeriodMillis: Long): NodeId

suspend fun DOMDomain.awaitNodeBySelector(selector: CssSelector, pollingPeriod: Duration = 200.milliseconds): NodeId

Retrieves the ID of the node corresponding to the given selector, and retries until there is a match using the given pollingPeriod.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
suspend fun DOMDomain.getAttributeValue(nodeId: NodeId, attributeName: String): String?

Gets the value of the attribute attributeName of the node corresponding to the given nodeId, or null if the attribute was not present on the node.

suspend fun DOMDomain.getAttributeValue(nodeSelector: CssSelector, attributeName: String): String?

Gets the value of the attribute attributeName of the node corresponding to the given nodeSelector, or null if the selector didn't match any node or if the attribute was not present on the node.

Link copied to clipboard
suspend fun DOMDomain.getBoxModel(nodeId: NodeId): BoxModel

Returns boxes for the node corresponding to the given nodeId.

suspend fun DOMDomain.getBoxModel(selector: CssSelector): BoxModel?

Returns boxes for the node corresponding to the given selector, or null if the selector didn't match any node.

Link copied to clipboard

Retrieves the root Node of the current document.

Link copied to clipboard

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

Link copied to clipboard

Retrieves the ID of the node corresponding to the given selector, or throw an exception if not found.

Link copied to clipboard

Gets the attributes of the node corresponding to the given nodeId.

Gets the attributes of the node corresponding to the given nodeSelector, or null if the selector didn't match any node.

Link copied to clipboard
suspend fun DOMDomain.setAttributeValue(nodeSelector: CssSelector, name: String, value: String)

Sets the attribute of the given name to the given value on the node corresponding to the given nodeSelector. Throws an exception if the selector didn't match any node.