org.openqa.selenium.interactions
Class Actions
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mouse
protected Mouse mouse
keyboard
protected Keyboard keyboard
Actions
public Actions(WebDriver driver)
Actions
public Actions(Keyboard keyboard,
Mouse mouse)
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.