I\'m attempting to update an EditText as part of an Espresso test with:
EditText
onView(allOf(withClassName(endsWith(\"EditText\")), withText(is(\"Test\"
I was having a similar issue and solved it using the containsString matcher and Class.getSimpleName(). Like this:
onView(withClassName(containsString(PDFViewPagerIVZoom.class.getSimpleName()))).check(matches(isDisplayed()));
You can see the full code here