|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||
User dialog expectation methods.
| Field Summary | |
static int |
PRESS_CANCEL
Cancel button |
static int |
PRESS_OK
Ok button |
| Method Summary | |
void |
expectAlert(AlertAssert alertAssert,
java.lang.String expectedAlertDescription)
Setups custom alert expectation. |
void |
expectAlert(java.lang.String expectedText)
Setups alert expectation with specified text. |
void |
expectAnyAlert()
Setups any alert expectation. |
void |
expectAnyConfirm(int whatToPress)
Setups any confirmation dialog expectation. |
void |
expectAnyPrompt(java.lang.String newValue)
Setups prompt dialog expectation. |
void |
expectConfirm(ConfirmAssert confirmAssert,
java.lang.String expectedConfirmDescription,
int whatToPress)
Setups custom confirmation dialog expectation. |
void |
expectConfirm(java.lang.String expectedText,
int whatToPress)
Setups confirmation dialog expectation with specified text. |
void |
expectPrompt(PromptAssert promptAssert,
java.lang.String expectedPromptdescription,
java.lang.String newValue)
Setups custom prompt dialog expectation. |
void |
expectPromptWithText(java.lang.String expectedText,
java.lang.String newValue)
Setups prompt dialog expectation with expected text. |
void |
expectPromptWithTextAndValue(java.lang.String expectedText,
java.lang.String expectedValue,
java.lang.String newValue)
Setups prompt dialog expectation with expected text and initial value. |
void |
verifyUserDialogs()
Verifies that all expected user dialogs are occurred. |
| Field Detail |
public static final int PRESS_OK
public static final int PRESS_CANCEL
| Method Detail |
public void expectAnyAlert()
public void expectAlert(java.lang.String expectedText)
Text shown in alert will be normalized before comparing with expectedText argument.
expectedText - text an alert must have
public void expectAlert(AlertAssert alertAssert,
java.lang.String expectedAlertDescription)
alertAssert - custom alert assertion implementation making actual assertion.expectedAlertDescription - Description for an expected alert dialog. This description is shown in logs in case when the expected dialog didn't occur.public void expectAnyConfirm(int whatToPress)
whatToPress - button to press in confirm: either PRESS_OK or PRESS_CANCEL constant must be used.
public void expectConfirm(java.lang.String expectedText,
int whatToPress)
expectedText - text a confirm must havewhatToPress - button to press in confirm: either PRESS_OK or PRESS_CANCEL constant must be used.
public void expectConfirm(ConfirmAssert confirmAssert,
java.lang.String expectedConfirmDescription,
int whatToPress)
confirmAssert - custom confirmation assertion implementation making actual assertionexpectedConfirmDescription - Description for an expected confirmation dialog. This description is shown in logs in case when the expected dialog didn't occur.whatToPress - button to press in confirm: either PRESS_OK or PRESS_CANCEL constant must be used.public void expectAnyPrompt(java.lang.String newValue)
newValue - value to specify in prompt, if null then prompt will be cancelled
public void expectPromptWithText(java.lang.String expectedText,
java.lang.String newValue)
expectedText - text a prompt must havenewValue - value to specify in prompt, if null then prompt will be cancelled
public void expectPrompt(PromptAssert promptAssert,
java.lang.String expectedPromptdescription,
java.lang.String newValue)
promptAssert - custom prompt assertion implementation making actual assertionexpectedPromptdescription - Description for an expected prompt dialog. This description is shown in logs in case when the expected dialog didn't occur.newValue - value to specify in prompt, if null then prompt will be cancelled
public void expectPromptWithTextAndValue(java.lang.String expectedText,
java.lang.String expectedValue,
java.lang.String newValue)
expectedText - text a prompt must haveexpectedValue - initial value a prompt must havenewValue - value to specify in prompt, if null then prompt will be cancelled
public void verifyUserDialogs()
throws UserDialogExpectedException
UserDialogExpectedException - if not all user dialogs occurred.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||