public class EspDrawer extends EspView
Actions and assertions for a Drawer.
| Modifier and Type | Field and Description |
|---|---|
protected int |
drawerLayout |
| Constructor and Description |
|---|
EspDrawer(EspDrawer template)
Create new instance based on given element matcher.
|
EspDrawer(int drawerLayout,
int drawerContent)
Create new instance matching an element with given resources.
|
| Modifier and Type | Method and Description |
|---|---|
static EspView |
byId(int resourceId)
Deprecated.
Currently not supported please use a different element creator.
|
static EspDrawer |
byId(int drawerLayout,
int drawerContent)
Create new instance matching an element with given resources.
|
void |
close()
Close the drawer.
|
protected android.support.test.espresso.ViewInteraction |
findDrawerLayout()
Access base drawer layout.
|
EspNavigationMenuItem |
navigationMenuItem(java.lang.String text)
Access navigation menu item by his text.
|
void |
open()
Open the drawer.
|
assertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, byAll, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspDrawer(int drawerLayout,
int drawerContent)
Create new instance matching an element with given resources.
drawerLayout - Identifier for base drawer layout.drawerContent - Identifier for base layout with drawer content.public EspDrawer(EspDrawer template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspDrawer byId(int drawerLayout, int drawerContent)
Create new instance matching an element with given resources.
drawerLayout - Identifier for base drawer layout.drawerContent - Identifier for base layout with drawer content.public void open()
Open the drawer.
public void close()
Close the drawer.
protected android.support.test.espresso.ViewInteraction findDrawerLayout()
Access base drawer layout.
public EspNavigationMenuItem navigationMenuItem(java.lang.String text)
Access navigation menu item by his text.
text - Navigation menu item text.@Deprecated public static EspView byId(int resourceId)