class TouchSequence
Class for defining sequences of user touch interactions. Each sequence will not be executed until #perform
is called.
Example:
new webdriver.TouchSequence(driver).
tapAndHold({x: 0, y: 0}).
move({x: 3, y: 4}).
release({x: 10, y: 10}).
perform();
new TouchSequence(driver)
Instance Methods
doubleTap(elem)code »
Double taps an element.
Flick, starting anywhere on the screen, at speed xspeed and yspeed.
Parameters
- speed
{xspeed: number, yspeed: number}
The speed to flick in each direction, in pixels per second.
flickElement(elem, offset, speed)code »
Flick starting at elem and moving by x and y at specified speed.
longPress(elem)code »
Long press on an element.
move(location)code »
Move a held touch to the specified location.
Parameters
- location
{x: number, y: number}
The location to move to.
release(location)code »
Release a held touch at the specified location.
Parameters
- location
{x: number, y: number}
The location to release at.
tapAndHold(location)code »
Touch down at the given location.
Parameters
- location
{x: number, y: number}
The location to touch down at.