getBoxModel

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

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


suspend fun DOMDomain.getBoxModel(nodeId: NodeId): BoxModel(source)

Returns boxes for the node corresponding to the given nodeId.

Official doc