UNPKG

webdriverio-workflo

Version:

This is a customized version of webdriverio for use with workflo framework.

31 lines (26 loc) 897 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = performTouchAction; var _ErrorHandler = require('../utils/ErrorHandler'); function performTouchAction(action) { if (typeof action !== 'object') { throw new _ErrorHandler.ProtocolError('number or type of arguments don\'t agree with performTouchAction protocol command'); } return this.requestHandler.create({ path: '/session/:sessionId/touch/perform', method: 'POST' }, action); } /** * * Perform touch action * * @param {Object} touchAttr contains attributes of touch gesture (e.g. `element`, `x` and `y`) * * @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/other/appium-bindings.md#touchaction--multitouchaction * @type mobile * @for android, ios * */ module.exports = exports['default'];