waitFor

suspend fun waitFor(tag: String, timeoutMs: Long = config.defaultWaitTimeoutMs)

Blocks execution until an element matching the tag becomes visible.

Fails with an AssertionError if the timeoutMs is reached.


suspend fun waitFor(selector: Selector, timeoutMs: Long = config.defaultWaitTimeoutMs)

Blocks execution until an element matching the selector becomes visible.