android-espresso Getting started with android-espresso Find view by the text


Example

onView(withText("Pay"))
onView(withText(R.string.pay))