UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

25 lines (20 loc) 715 B
/** * * Double tap on the touch screen using finger motion events. * * @param {String} ID ID of a WebElement JSON object to route the command to * * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#session/:sessionId/touch/doubleclick * @type protocol * */ var ErrorHandler = require('../utils/ErrorHandler.js'); module.exports = function touchDoubleClick (id) { if(typeof id !== 'string' && typeof id !== 'number') { throw new ErrorHandler.ProtocolError('number or type of arguments don\'t agree with touchDoubleClick protocol command'); } return this.requestHandler.create( '/session/:sessionId/touch/doubleclick', { element: id.toString() } ); };