forked from enviPath/enviPy
Current Dev State
This commit is contained in:
22
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchUp.js
generated
vendored
Normal file
22
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchUp.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
/**
|
||||
*
|
||||
* 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'
|
||||
|
||||
export default function touchUp (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 })
|
||||
}
|
||||
Reference in New Issue
Block a user