public class EspButton extends EspView
Actions and assertions for a Button.
| Constructor and Description |
|---|
EspButton(EspButton template)
Create new instance based on given element matcher.
|
EspButton(int resourceId)
Create new instance matching an element with given resourceId.
|
EspButton(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertTextIs(java.lang.String expected)
Checks that the current text matches the expected text.
|
static EspButton |
byId(int resourceId)
Create new instance matching an element with given resourceId.
|
static EspButton |
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, byAll, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspButton(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public EspButton(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
base - Matcher for this element.public EspButton(EspButton template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspButton byId(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public static EspButton byText(java.lang.String text)
Create new instance matching an element with given text.
text - Identifier for this element.public void assertTextIs(java.lang.String expected)
Checks that the current text matches the expected text.
expected - Expected text.