waitForFunction

open suspend override fun waitForFunction(expression: String, timeoutMillis: Long)

Waits until a JavaScript expression is truthy.