org.openqa.selenium.interactions.touch
Class TouchActions

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

public class TouchActions
extends Actions

Implements actions for touch enabled devices, reusing the available composite and builder design patterns from Actions.


Field Summary
protected  TouchScreen touchScreen
           
 
Fields inherited from class org.openqa.selenium.interactions.Actions
action, keyboard, mouse
 
Constructor Summary
TouchActions(Keyboard keyboard, TouchScreen touchScreen)
           
TouchActions(WebDriver driver)
           
 
Method Summary
 TouchActions doubleTap(WebElement onElement)
           
 TouchActions down(int x, int y)
           
 TouchActions flick(int xSpeed, int ySpeed)
           
 TouchActions flick(WebElement onElement, int xOffset, int yOffset, int speed)
           
 TouchActions longPress(WebElement onElement)
           
 TouchActions move(int x, int y)
           
 TouchActions scroll(int xOffset, int yOffset)
           
 TouchActions scroll(WebElement onElement, int xOffset, int yOffset)
           
 TouchActions singleTap(WebElement onElement)
           
 TouchActions up(int x, int y)
           
 
Methods inherited from class org.openqa.selenium.interactions.Actions
build, click, click, clickAndHold, clickAndHold, contextClick, doubleClick, doubleClick, dragAndDrop, dragAndDropBy, keyDown, keyDown, keyUp, keyUp, moveByOffset, moveToElement, moveToElement, perform, release, release, sendKeys, sendKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

touchScreen

protected TouchScreen touchScreen
Constructor Detail

TouchActions

public TouchActions(WebDriver driver)

TouchActions

public TouchActions(Keyboard keyboard,
                    TouchScreen touchScreen)
Method Detail

singleTap

public TouchActions singleTap(WebElement onElement)

down

public TouchActions down(int x,
                         int y)

up

public TouchActions up(int x,
                       int y)

move

public TouchActions move(int x,
                         int y)

scroll

public TouchActions scroll(WebElement onElement,
                           int xOffset,
                           int yOffset)

doubleTap

public TouchActions doubleTap(WebElement onElement)

longPress

public TouchActions longPress(WebElement onElement)

scroll

public TouchActions scroll(int xOffset,
                           int yOffset)

flick

public TouchActions flick(int xSpeed,
                          int ySpeed)

flick

public TouchActions flick(WebElement onElement,
                          int xOffset,
                          int yOffset,
                          int speed)


Copyright © 2011. All Rights Reserved.