I\'m attempting to update an EditText as part of an Espresso test with:
onView(allOf(withClassName(endsWith(\"EditText\")), withText(is(\"Test\"
You could try two things. First I would try to use
onView(withId().perform...
This way you would always have access to the EditText field even when other EditText fields are on the screen.
If that's not an option, you could split up your perform calls.
onView(allOf(withClassName(endsWith("EditText")),withText(is("Test")))).perform(clearText());
onView(withClassName(endsWith("EditText"))).perform(click());
onView(withClassName(endsWith("EditText"))).perform(typeText("Another Test");