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 void
Perform 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 ofActionComposer
keysToSend
- characters to send to alert box
-
-
Method Details
-
performMultiPhase
protected void performMultiPhase()Description copied from class:MultiPhaseAction
Perform multiple-phased browser action.MultiPhaseAction.noNextPhase()
needs to be invoked to signal that there is no more phase to execute.- Specified by:
performMultiPhase
in classMultiPhaseAction
-
toString
- Overrides:
toString
in classMultiPhaseAction
-