public final class ViewPredicates
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <any> |
hasContentDescription(java.lang.String contentDescription) |
static <any> |
hasDrawable(Drawable drawable) |
static <any> |
hasId(int id) |
static <any> |
hasTag(int tagId,
java.lang.Object tagValue) |
static <any> |
hasText(java.lang.String text)
Returns a predicate that returns true if the applied on view's text is equal to the given text.
|
static <any> |
hasTextMatchingPredicate(<any> predicate)
Returns a predicate that returns true if the applied on view's text is equal to the given text.
|
static <any> |
hasVisibleDrawable(Drawable drawable) |
static <any> |
hasVisibleId(int viewId) |
static <any> |
hasVisibleMatchingText(java.lang.String text) |
static <any> |
hasVisibleText(java.lang.String text) |
static <any> |
hasVisibleTextWithTag(java.lang.String text,
int tagId,
java.lang.Object tagValue) |
static <any> |
isClass(java.lang.Class<? extends View> clazz) |
static <any> |
isVisible() |
static <any> |
matchesText(java.lang.String text) |
public static <any> hasTextMatchingPredicate(<any> predicate)
predicate
- the predicate with which to test the textpublic static <any> hasText(java.lang.String text)
text
- the text to checkpublic static <any> hasTag(int tagId, java.lang.Object tagValue)
public static <any> hasContentDescription(java.lang.String contentDescription)
public static <any> hasVisibleText(java.lang.String text)
public static <any> hasVisibleTextWithTag(java.lang.String text, int tagId, java.lang.Object tagValue)
public static <any> matchesText(java.lang.String text)
public static <any> hasVisibleMatchingText(java.lang.String text)
public static <any> isVisible()
public static <any> isClass(java.lang.Class<? extends View> clazz)
public static <any> hasDrawable(Drawable drawable)
public static <any> hasVisibleDrawable(Drawable drawable)
public static <any> hasVisibleId(int viewId)
public static <any> hasId(int id)