org.openqa.selenium.interactions
Class Actions

java.lang.Object
  extended by org.openqa.selenium.interactions.Actions

public class Actions
extends java.lang.Object

Implements the builder pattern: Builds a CompositeAction containing all actions specified by the method calls.


Field Summary
protected  Keyboard keyboard
           
protected  Mouse mouse
           
 
Constructor Summary
Actions(Keyboard keyboard, Mouse mouse)
           
Actions(WebDriver driver)
           
 
Method Summary
 Action build()
           
 Actions click()
           
 Actions click(WebElement onElement)
           
 Actions clickAndHold(WebElement onElement)
           
 Actions contextClick(WebElement onElement)
           
 Actions doubleClick(WebElement onElement)
           
 Actions dragAndDrop(WebElement source, WebElement target)
           
 Actions dragAndDropBy(WebElement source, int xOffset, int yOffset)
           
 Actions keyDown(Keys theKey)
           
 Actions keyDown(WebElement element, Keys theKey)
           
 Actions keyUp(Keys theKey)
           
 Actions keyUp(WebElement element, Keys theKey)
           
 Actions moveByOffset(int xOffset, int yOffset)
           
 Actions moveToElement(WebElement toElement)
           
 Actions moveToElement(WebElement toElement, int xOffset, int yOffset)
           
 void perform()
           
 Actions release(WebElement onElement)
           
 Actions sendKeys(java.lang.CharSequence... keysToSend)
           
 Actions sendKeys(WebElement element, java.lang.CharSequence... keysToSend)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mouse

protected Mouse mouse

keyboard

protected Keyboard keyboard
Constructor Detail

Actions

public Actions(WebDriver driver)

Actions

public Actions(Keyboard keyboard,
               Mouse mouse)
Method Detail

keyDown

public Actions keyDown(Keys theKey)

keyDown

public Actions keyDown(WebElement element,
                       Keys theKey)

keyUp

public Actions keyUp(Keys theKey)

keyUp

public Actions keyUp(WebElement element,
                     Keys theKey)

sendKeys

public Actions sendKeys(java.lang.CharSequence... keysToSend)

sendKeys

public Actions sendKeys(WebElement element,
                        java.lang.CharSequence... keysToSend)

clickAndHold

public Actions clickAndHold(WebElement onElement)

release

public Actions release(WebElement onElement)

click

public Actions click(WebElement onElement)

click

public Actions click()

doubleClick

public Actions doubleClick(WebElement onElement)

moveToElement

public Actions moveToElement(WebElement toElement)

moveToElement

public Actions moveToElement(WebElement toElement,
                             int xOffset,
                             int yOffset)

moveByOffset

public Actions moveByOffset(int xOffset,
                            int yOffset)

contextClick

public Actions contextClick(WebElement onElement)

dragAndDrop

public Actions dragAndDrop(WebElement source,
                           WebElement target)

dragAndDropBy

public Actions dragAndDropBy(WebElement source,
                             int xOffset,
                             int yOffset)

build

public Action build()

perform

public void perform()


Copyright © 2011. All Rights Reserved.