public class EspNavigationMenuItem extends EspView
Checks and assertions for a NavigationView menu item.
| Constructor and Description |
|---|
EspNavigationMenuItem(EspNavigationMenuItem template)
Create new instance based on given element matcher.
|
EspNavigationMenuItem(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
|
EspNavigationMenuItem(java.lang.String itemText)
Create new instance matching an element with given text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertIsNotSelected()
Check that the menu item is not in state selected.
|
void |
assertIsSelected()
Check that the menu item is in state selected.
|
static EspNavigationMenuItem |
byText(java.lang.String text)
Create new instance matching an element with given text.
|
assertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsVisible, assertNotExist, baseMatcher, byAll, byId, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspNavigationMenuItem(java.lang.String itemText)
Create new instance matching an element with given text.
itemText - Identifier for this element.public EspNavigationMenuItem(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
base - Matcher for this element.public EspNavigationMenuItem(EspNavigationMenuItem template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspNavigationMenuItem byText(java.lang.String text)
Create new instance matching an element with given text.
text - Identifier for this element.public void assertIsSelected()
Check that the menu item is in state selected.
assertIsSelected in class EspViewpublic void assertIsNotSelected()
Check that the menu item is not in state selected.
assertIsNotSelected in class EspView