Package org.kquiet.browser.action
Class ReplyAlert
java.lang.Object
org.kquiet.browser.action.MultiPhaseAction
org.kquiet.browser.action.ReplyAlert
- All Implemented Interfaces:
Composable,MultiPhased
ReplyAlert is a subclass of MultiPhaseAction which interacts with the alert box.
StaleElementReferenceException may happen while ReplyAlert
tries to manipulate the element, so multi-phase is used to perform the action again.- Author:
- Kimberly
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReplyAlert(ReplyAlert.Decision decision, String textVariableName, String keysToSend) Create an action to deal with alert box. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerform multiple-phased browser action.toString()Methods inherited from class org.kquiet.browser.action.MultiPhaseAction
getActionState, getComposer, getCostTime, getErrors, hasNextPhase, isDone, isFail, noNextPhase, perform, setActionState, setComposer, switchToTopForFirefox
-
Constructor Details
-
ReplyAlert
Create an action to deal with alert box.- Parameters:
decision- the way to deal with alert boxtextVariableName- text variable name; non-empty name means to set the text of alert box as a variable ofActionComposerkeysToSend- characters to send to alert box
-
-
Method Details
-
performMultiPhase
protected void performMultiPhase()Description copied from class:MultiPhaseActionPerform multiple-phased browser action.MultiPhaseAction.noNextPhase()needs to be invoked to signal that there is no more phase to execute.- Specified by:
performMultiPhasein classMultiPhaseAction
-
toString
- Overrides:
toStringin classMultiPhaseAction
-