UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

26 lines (21 loc) 640 B
/** * * Finger up on the screen. * * @param {Number} x coordinate on the screen * @param {Number} y coordinate on the screen * * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/touch/up * @type protocol * */ var ErrorHandler = require('../utils/ErrorHandler.js'); module.exports = function touchUp (x, y) { if(typeof x !== 'number' || typeof y !== 'number') { throw new ErrorHandler.ProtocolError('number or type of arguments don\'t agree with touchUp command'); } return this.requestHandler.create( '/session/:sessionId/touch/up', {x: x, y: y} ); };