org.openqa.selenium.interactions
Class ClickAndHoldAction
java.lang.Object
org.openqa.selenium.interactions.internal.BaseAction
org.openqa.selenium.interactions.internal.MouseAction
org.openqa.selenium.interactions.ClickAndHoldAction
- All Implemented Interfaces:
- Action
public class ClickAndHoldAction
- extends MouseAction
- implements Action
Presses the left mouse button without releasing it.
Fields inherited from class org.openqa.selenium.interactions.internal.MouseAction |
mouse |
Fields inherited from class org.openqa.selenium.interactions.internal.BaseAction |
where |
Method Summary |
void |
perform()
Holds down the mouse button on a selected element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClickAndHoldAction
public ClickAndHoldAction(Mouse mouse,
Locatable locationProvider)
perform
public void perform()
- Holds down the mouse button on a selected element. If this action is
called out of sequence (i.e. twice in a row, without releasing the
button after the first action) the results will be different between
browsers.
- Specified by:
perform
in interface Action
Copyright © 2011. All Rights Reserved.