UNPKG

@christian-bromann/webdriverio

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

26 lines (21 loc) 744 B
/** * * Long press on the touch screen using finger motion events. Depcrecated! Please use `touchPerform` instead. * * @param {String} id ID of the element to long press on * * @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchlongclick * @type protocol * @for android * */ import { ProtocolError } from '../utils/ErrorHandler' let touchLongClick = function (id) { if (typeof id !== 'string' && typeof id !== 'number') { throw new ProtocolError('number or type of arguments don\'t agree with touchLongClick protocol command') } return this.requestHandler.create('/session/:sessionId/touch/longclick', { element: id.toString() }) } export default touchLongClick