withText

public final Unit withText(String text)

Matches the view with given text

Parameters

text

Text to match


public final Unit withText(@StringRes() Integer textId, Boolean cacheTextValue)

Matches the view with given text

Parameters

textId

String resource to match

cacheTextValue

whether to cache the text extracted from resources for future checks


public final Unit withText(Matcher<String> matcher)

Matches the view with given text matcher

Parameters

matcher

Text matcher to add