Package org.kquiet.browser.action
Class JustWait
java.lang.Object
org.kquiet.browser.action.MultiPhaseAction
org.kquiet.browser.action.JustWait
- All Implemented Interfaces:
Composable
,MultiPhased
JustWait
is a subclass of MultiPhaseAction
which just waits by phases to avoid
blocking the execution of other browser actions.- Author:
- Kimberly
-
Constructor Summary
Constructors -
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
-
JustWait
public JustWait(int totalTimeout) With phase timeout defaulted to 10.- Parameters:
totalTimeout
- the maximum amount of time to wait totally
-
JustWait
public JustWait(int totalTimeout, int phaseTimeout) Create an action representing just waiting.- Parameters:
totalTimeout
- the maximum amount of time to wait totallyphaseTimeout
- the maximum amount of time to wait for each execution phase
-
-
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
-