findViewWithText

fun findViewWithText(@StringRes resourceId: Int): View

Finds the first View with the specified text in the rendered hierarchy, throwing if it doesn't exist.