public class EspEditText extends EspTextView
Actions and assertions for a EditText.
| Constructor and Description |
|---|
EspEditText(EspEditText template)
Create new instance based on given element matcher.
|
EspEditText(int resourceId)
Create new instance matching an element with given resourceId.
|
EspEditText(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertHintTextIs(java.lang.String expectedText)
Check that the element hint has the expected text.
|
static EspAllOfBuilder<EspEditText> |
byAll()
Create an allOf matcher builder for this element.
|
static EspEditText |
byId(int resourceId)
Create new instance matching an element with given resourceId.
|
static EspEditText |
byText(java.lang.String text)
Create new instance matching an element with given text.
|
void |
replaceText(java.lang.String newText)
Set newText to the element.
|
assertTextColorIs, assertTextColorResIs, assertTextIsassertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspEditText(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public EspEditText(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
base - Matcher for this element.public EspEditText(EspEditText template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspEditText byId(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public static EspEditText byText(java.lang.String text)
Create new instance matching an element with given text.
text - Identifier for this element.public static EspAllOfBuilder<EspEditText> byAll()
Create an allOf matcher builder for this element.
public void replaceText(java.lang.String newText)
Set newText to the element.
Existing text is full replaced by this action.
newText - New view text.public void assertHintTextIs(java.lang.String expectedText)
Check that the element hint has the expected text.
expectedText - Expected hint text.