waitForCondition

fun <T : View> waitForCondition(description: String, condition: (view: T) -> Boolean, timeout: Long = 2, timeoutUnit: TimeUnit = TimeUnit.SECONDS): ViewAction