org.openqa.selenium.interactions
Class ClickAndHoldAction

java.lang.Object
  extended by org.openqa.selenium.interactions.internal.BaseAction
      extended by org.openqa.selenium.interactions.internal.MouseAction
          extended by org.openqa.selenium.interactions.ClickAndHoldAction
All Implemented Interfaces:
Action

public class ClickAndHoldAction
extends MouseAction
implements Action

Presses the left mouse button without releasing it.


Field Summary
 
Fields inherited from class org.openqa.selenium.interactions.internal.MouseAction
mouse
 
Fields inherited from class org.openqa.selenium.interactions.internal.BaseAction
where
 
Constructor Summary
ClickAndHoldAction(Mouse mouse, Locatable locationProvider)
           
 
Method Summary
 void perform()
          Holds down the mouse button on a selected element.
 
Methods inherited from class org.openqa.selenium.interactions.internal.MouseAction
getActionLocation, moveToLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickAndHoldAction

public ClickAndHoldAction(Mouse mouse,
                          Locatable locationProvider)
Method Detail

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 © 2013. All Rights Reserved.