webdriverjs
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
17 lines (14 loc) • 403 B
JavaScript
/**
* Single tap on the touch enabled device.
*
* @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/touch/click
*
* @param {String} id of the session to route the command to
*/
module.exports = function touchClick (id, callback) {
this.requestHandler.create(
'/session/:sessionId/touch/click',
{ element: id.toString() },
callback
);
};