public class EspDialog extends EspView
Base for action and assertion for Dialogs.
Recommend is to use more specific subclasses like EspAlertDialog.
| Modifier and Type | Class and Description |
|---|---|
static class |
EspDialog.Spec
Dialog specification builder.
|
| Modifier and Type | Field and Description |
|---|---|
protected EspDialog.Spec |
spec |
| Constructor and Description |
|---|
EspDialog(EspDialog.Spec spec)
Create new element instance.
|
EspDialog(EspDialog template)
Create new instance based on given element matcher.
|
| Modifier and Type | Method and Description |
|---|---|
static EspView |
byId(int rootResource)
Deprecated.
Currently not supported please use a different element creator.
|
EspButton |
cancelButton()
Access neutral button element.
|
EspButton |
confirmButton()
Access positive button element.
|
EspButton |
denyButton()
Access negative button element.
|
void |
dismiss()
Dismiss dialog.
|
EspTextView |
message()
Access message element.
|
static EspDialog.Spec |
spec()
Start creating new element instance with given specification.
|
EspTextView |
title()
Access title element.
|
assertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, byAll, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUpprotected EspDialog.Spec spec
public EspDialog(EspDialog.Spec spec)
Create new element instance.
spec - Configure element with given specification.public EspDialog(EspDialog template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspDialog.Spec spec()
Start creating new element instance with given specification.
public EspTextView title()
Access title element.
public EspTextView message()
Access message element.
public EspButton confirmButton()
Access positive button element.
public EspButton denyButton()
Access negative button element.
public EspButton cancelButton()
Access neutral button element.
public void dismiss()
Dismiss dialog.
This is like clicking outside of the dialog instead any dialog button. If the dialog is not cancelable this call have no effect.
@Deprecated public static EspView byId(int rootResource)