getAttributeValue

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

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.


suspend fun DOMDomain.getAttributeValue(nodeId: NodeId, attributeName: String): String?(source)

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.