public class EspListViewItem extends EspAdapterViewItem
Actions and assertions for ListView items including ChildViews and AdapterItems.
| Constructor and Description |
|---|
EspListViewItem(EspAdapterViewItem template)
Create new instance based on given element matcher.
|
EspListViewItem(org.hamcrest.Matcher<android.view.View> listMatcher,
int listViewId,
int index,
de.nenick.espressomacchiato.elements.EspAdapterViewItem.Mode mode)
Create new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static EspListViewItem |
byItemIndex(int adapterViewId,
int index)
Create new instance based on adapter index.
|
static EspListViewItem |
byVisibleIndex(int adapterViewId,
int index)
Create new instance based on visible index.
|
baseMatcherForItemChild, byAll, byId, scrollToassertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspListViewItem(org.hamcrest.Matcher<android.view.View> listMatcher,
int listViewId,
int index,
de.nenick.espressomacchiato.elements.EspAdapterViewItem.Mode mode)
Create new instance.
listMatcher - For Mode#byItemIndex use AdapterView base matcher. For Mode#byVisibleIndex use EspAdapterViewItemMatcher.listViewId - Adapter view containing this item.index - Item index for doing actions or assertions.mode - Choose an index Mode.public EspListViewItem(EspAdapterViewItem template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspListViewItem byItemIndex(int adapterViewId, int index)
Create new instance based on adapter index.
adapterViewId - Adapter view containing this item.index - Item index for doing actions or assertions.public static EspListViewItem byVisibleIndex(int adapterViewId, int index)
Create new instance based on visible index.
adapterViewId - Adapter view containing this item.index - Item index for doing actions or assertions.