public class EspTextView extends EspView
Actions and assertions for a TextView.
| Constructor and Description |
|---|
EspTextView(EspTextView template)
Create new instance based on given element matcher.
|
EspTextView(int resourceId)
Create new instance matching an element with given resourceId.
|
EspTextView(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertTextColorIs(int color)
Check that the element has the expected text color.
|
void |
assertTextColorResIs(int color)
Check that the element has the expected text color.
|
void |
assertTextIs(java.lang.String expected)
Check that the element has the expected text.
|
static EspAllOfBuilder<? extends EspTextView> |
byAll()
Create an allOf matcher builder for this element.
|
static EspTextView |
byId(int resourceId)
Create new instance matching an element with given resourceId.
|
static EspTextView |
byText(java.lang.String text)
Create new instance matching an element with given text.
|
assertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspTextView(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public EspTextView(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
base - Matcher for this element.public EspTextView(EspTextView template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspTextView byId(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public static EspTextView byText(java.lang.String text)
Create new instance matching an element with given text.
text - Identifier for this element.public static EspAllOfBuilder<? extends EspTextView> byAll()
Create an allOf matcher builder for this element.
public void assertTextIs(java.lang.String expected)
Check that the element has the expected text.
expected - Expected view text.public void assertTextColorIs(int color)
Check that the element has the expected text color.
color - Expected view text color value.public void assertTextColorResIs(@ColorRes
int color)
Check that the element has the expected text color.
color - Expected view text color resource id.