public class EspAdapterView extends EspView
Base for actions and assertions for a AdapterView.
Recommend is to use more specific elements like EspListView. For actions and assertions with AdapterView items see EspAdapterViewItem
| Constructor and Description |
|---|
EspAdapterView(EspAdapterView template)
Create new instance based on given element matcher.
|
EspAdapterView(int resourceId)
Create new instance matching an element with given resourceId.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertItemCountIs(int expected)
Check that the views adapter contains the expected count of items.
|
static EspAdapterView |
byId(int resourceId)
Create new instance matching an element with given resourceId.
|
EspAdapterViewItem |
itemByIndex(int index)
Access item by index known by the adapter.
|
EspAdapterViewItem |
itemByVisibleIndex(int index)
Access item by his visible index.
|
assertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, byAll, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspAdapterView(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public EspAdapterView(EspAdapterView template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspAdapterView byId(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public void assertItemCountIs(int expected)
Check that the views adapter contains the expected count of items.
This counts the items existing in adapter and not the visible items. Header and footer are count as list items.
expected - Zero for no items or a positive number.public EspAdapterViewItem itemByIndex(int index)
Access item by index known by the adapter.
index - Item index in adapter.public EspAdapterViewItem itemByVisibleIndex(int index)
Access item by his visible index.
index - That is the index which a human can see.