await Node By Selector
suspend fun DOMDomain.awaitNodeBySelector(selector: CssSelector, pollingPeriod: Duration = 200.milliseconds): NodeId(source)
Retrieves the ID of the node corresponding to the given selector, and retries until there is a match using the given pollingPeriod.
This method may suspend forever if the selector never matches any node. The caller is responsible for using withTimeout or similar cancellation mechanisms around calls to this method if handling this case is necessary.
Note that the returned NodeId cannot really be used to retrieve actual node information, and this is apparently by design of the DOM domain. It can be used to perform other CDP commands that require a NodeId, though.