forked from enviPath/enviPy
Current Dev State
This commit is contained in:
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchClick.js
generated
vendored
Normal file
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchClick.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
*
|
||||
* Single tap on the touch enabled device. Depcrecated! Please use `touchPerform` instead.
|
||||
*
|
||||
* @param {String} ID ID of a WebElement JSON object to route the command to
|
||||
*
|
||||
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchclick
|
||||
* @type protocol
|
||||
* @for android
|
||||
* @depcrecated
|
||||
*
|
||||
*/
|
||||
|
||||
import { ProtocolError } from '../utils/ErrorHandler'
|
||||
|
||||
export default function touchClick (id) {
|
||||
if (typeof id !== 'string' && typeof id !== 'number') {
|
||||
throw new ProtocolError('number or type of arguments don\'t agree with elementIdCssProperty protocol command')
|
||||
}
|
||||
|
||||
return this.requestHandler.create('/session/:sessionId/touch/click', {
|
||||
element: id.toString()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user