org.openqa.selenium.interactions
Class Actions
java.lang.Object
org.openqa.selenium.interactions.Actions
- Direct Known Subclasses:
- TouchActions
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
action
protected CompositeAction action
Actions
public Actions(WebDriver driver)
Actions
public Actions(Keyboard keyboard,
Mouse mouse)
Actions
public Actions(Keyboard keyboard)
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)
clickAndHold
public Actions clickAndHold()
release
public Actions release(WebElement onElement)
release
public Actions release()
click
public Actions click(WebElement onElement)
click
public Actions click()
doubleClick
public Actions doubleClick(WebElement onElement)
doubleClick
public Actions doubleClick()
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.