GetAnchorElementRequest

@Serializable
data class GetAnchorElementRequest(val nodeId: NodeId, val anchorSpecifier: String? = null)

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

Constructors

Link copied to clipboard
constructor(nodeId: NodeId, anchorSpecifier: String? = null)

Types

Link copied to clipboard
class Builder(val nodeId: NodeId)

A builder for GetAnchorElementRequest, which allows setting the optional parameters of the DOMDomain.getAnchorElement command via a lambda.

Properties

Link copied to clipboard
val anchorSpecifier: String? = null

An optional anchor specifier, as defined in https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier. If not provided, it will return the implicit anchor element for the given positioned element.

Link copied to clipboard

Id of the positioned element from which to find the anchor.