touchMultiPerform

Performs multiple touch actions. The action object is an array and its objects have to contain the action name (longPress, press, tap, wait, moveTo, release) and additional information about either the element, x/y coordinates or touch counts.

Usage

1
browser.touchMultiPerform(actions);

Parameters

Param Type Details
actions Object touch action as object or object[] with attributes like touchCount, x, y, duration

Example

simpleDragAndDrop.js
1
2
3
4
5
browser.touchMultiPerform([
{ action: 'press', options: { x: 100, y: 250 }},
{ action: 'moveTo', options: { x: 300, y: 100 }},
{ action: 'release' }
]);

Support

Support for android Support for ios