@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
25 lines (20 loc) • 673 B
JavaScript
/**
*
* Finger up on the screen. Depcrecated! Please use `touchPerform` instead.
*
* @param {Number} x coordinate on the screen
* @param {Number} y coordinate on the screen
*
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchup
* @type protocol
* @depcrecated
*
*/
import { ProtocolError } from '../utils/ErrorHandler'
let touchUp = function (x, y) {
if (typeof x !== 'number' || typeof y !== 'number') {
throw new ProtocolError('number or type of arguments don\'t agree with touchUp command')
}
return this.requestHandler.create('/session/:sessionId/touch/up', { x, y })
}
export default touchUp