Package org.kquiet.browser.action
Class Click
java.lang.Object
org.kquiet.browser.action.MultiPhaseAction
org.kquiet.browser.action.Click
- All Implemented Interfaces:
Composable
,MultiPhased
Click
is a subclass of MultiPhaseAction
which clicks an element. StaleElementReferenceException
may happen while Click
tries to
manipulate the element, so multi-phase is used to perform the action again.- 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
-
Click
public Click(org.openqa.selenium.By by) Create a new action representing a click.- Parameters:
by
- the element locating mechanism
-
Click
Create a new action representing a click.- Parameters:
by
- the element locating mechanismframeBySequence
- the sequence of the frame locating mechanism for the element resides in frame(or frame in another frame and so on)
-
-
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
-