waitFor

fun waitFor(@IdRes viewId: Int, index: Int = 0, timeout: Int = 7.second, function: (View) -> Boolean)