/** * This replaces {@code onView(SubstringMatcher)}. * @see RistrettoViewMatchers#with(String) */ public static ViewInteraction withView(final SubstringMatcher matcher) { return onView(withText(matcher)); }
/** * This replaces onView(allOf(SubstringMatcher, isDisplayed())). * @see Ristretto#withView(SubstringMatcher) */ public static ViewInteraction withDisplayedView(final SubstringMatcher matcher) { return onView(allOf(withText(matcher), isDisplayed())); }