Package org.kquiet.browser.action
Class MouseOver
java.lang.Object
org.kquiet.browser.action.MultiPhaseAction
org.kquiet.browser.action.MouseOver
- All Implemented Interfaces:
Composable
,MultiPhased
MouseOver
is a subclass of MultiPhaseAction
which moves the mouse to the middle
of an element. StaleElementReferenceException
may happen while MouseOver
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
-
MouseOver
public MouseOver(org.openqa.selenium.By by) Create an action representing moving mouse over some element.- Parameters:
by
- the element locating mechanism
-
MouseOver
Create an action representing moving mouse over some element.- 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
-