org.openqa.selenium.interactions
Class ActionChainsGenerator

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

public class ActionChainsGenerator
extends java.lang.Object

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


Constructor Summary
ActionChainsGenerator(WebDriver driver)
           
 
Method Summary
 Action build()
           
 ActionChainsGenerator click(WebElement onElement)
           
 ActionChainsGenerator clickAndHold(WebElement onElement)
           
 ActionChainsGenerator contextClick(WebElement onElement)
           
 ActionChainsGenerator doubleClick(WebElement onElement)
           
 ActionChainsGenerator dragAndDrop(WebElement source, WebElement target)
           
 ActionChainsGenerator keyDown(Keys theKey)
           
 ActionChainsGenerator keyDown(WebElement element, Keys theKey)
           
 ActionChainsGenerator keyUp(Keys theKey)
           
 ActionChainsGenerator keyUp(WebElement element, Keys theKey)
           
 ActionChainsGenerator moveToElement(WebElement toElement)
           
 ActionChainsGenerator onElement(WebElement element)
           
 ActionChainsGenerator release(WebElement onElement)
           
 ActionChainsGenerator sendKeys(java.lang.CharSequence... keysToSend)
           
 ActionChainsGenerator 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
 

Constructor Detail

ActionChainsGenerator

public ActionChainsGenerator(WebDriver driver)
Method Detail

onElement

public ActionChainsGenerator onElement(WebElement element)

keyDown

public ActionChainsGenerator keyDown(Keys theKey)

keyDown

public ActionChainsGenerator keyDown(WebElement element,
                                     Keys theKey)

keyUp

public ActionChainsGenerator keyUp(Keys theKey)

keyUp

public ActionChainsGenerator keyUp(WebElement element,
                                   Keys theKey)

sendKeys

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

sendKeys

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

build

public Action build()

clickAndHold

public ActionChainsGenerator clickAndHold(WebElement onElement)

release

public ActionChainsGenerator release(WebElement onElement)

click

public ActionChainsGenerator click(WebElement onElement)

doubleClick

public ActionChainsGenerator doubleClick(WebElement onElement)

moveToElement

public ActionChainsGenerator moveToElement(WebElement toElement)

contextClick

public ActionChainsGenerator contextClick(WebElement onElement)

dragAndDrop

public ActionChainsGenerator dragAndDrop(WebElement source,
                                         WebElement target)


Copyright © 2011. All Rights Reserved.