awaitNodeAbsentBySelector

suspend fun DOMDomain.awaitNodeAbsentBySelector(selector: CssSelector, pollingPeriod: Duration = 200.milliseconds)(source)

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

This method may suspend forever if the selector keeps matching at least one node. The caller is responsible for using withTimeout or similar cancellation mechanisms around calls to this method if handling this case is necessary.