.doubleTap(options)
Performs double tap gesture on element.
Usage
element(matcher).doubleTap(options)
Parameters
options
(Object?
):options.x
(Number?
): x offset from left of element. Defaults to center point.options.y
(Number?
): y offset from top of element. Defaults to center point.
Returns
Element
: A new element to avoid mutation and allow function chaining.
Support
Platform | Supported |
---|---|
iOS | Yes |
Android | Yes |
Web | No |
Examples
Perform double tap gesture at element center point:
const { element, by } = require("appdriver");
(async () => {
await element(by.label("button"))
.doubleTap();
})();
Perform double tap gesture at (200, 0), relative to the element location:
const { element, by } = require("appdriver");
(async () => {
await element(by.label("button"))
.doubleTap({ x: 200 });
})();