webdriverjs
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
22 lines (18 loc) • 569 B
JavaScript
/**
* Finger up on the screen.
*
* @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/touch/up
*
* @param {Number} x coordinate on the screen
* @param {Number} y coordinate on the screen
*/
module.exports = function touchUp (x, y, callback) {
if(typeof x !== 'number' || typeof y !== 'number') {
return callback(new Error('number or type of arguments don\'t agree with touchUp command'))
}
this.requestHandler.create(
'/session/:sessionId/touch/up',
{x: x, y: y},
callback
);
};