wait

fun wait(cond: Callable<Boolean>): Boolean
fun wait(cond: () -> Boolean): Boolean
fun wait(cond: Callable<Boolean>, freq: Int, tries: Int): Boolean

Blocks until the specified condition is satisfied (returns true). This uses a frequency of 600ms for up to 10 tries, i.e. attempting a maximum of 6 seconds.

Return

true if the condition was satisfied, otherwise false

Parameters

cond

the condition