View Source Improve this doc

rotate

Perform a rotation gesture centered on the specified element.

Usage

1
browser.rotate(x,y,radius,rotation,touchCount,duration);

Parameters

Param Type Details
x Number x offset to use for the center of the rotate gesture (default 0)
y Number y offset to use for the center of the rotate gesture (default 0)
radius Number The distance in points from the center to the edge of the circular path.
rotation Number The length of rotation in radians. (default pi (π))
touchCount Number The number of touches to use in the specified gesture. (Effectively, the number of fingers a user would use to make the specified gesture.) Valid values are 1 to 5. (default 2)
duration Number The length of hold time for the specified gesture, in seconds. (default is 1 second if you don’t set it)

Example

rotate.js
1
browser.rotate(114, 198);

Support

Support for ios