View Source Improve this doc

swipe

Perform a swipe on the screen or an element. If you want to swipe on a specific element make sure you provide a selector argument. If not just pass xoffset and yoffset as command arguments.

Start at a particular screen location.

Usage

1
browser.swipe([selector][,xoffset][,yoffset][,speed]);

Parameters

Param Type Details
selector
optional
String element to swipe on
xoffset
optional
Number x offset of swipe gesture (in pixels or relative units)
yoffset
optional
Number y offset of swipe gesture (in pixels or relative units)
speed
optional
Number time (in seconds) to spend performing the swipe

Uses