Files
enviPy-bayer/static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchClick.js
2025-06-23 20:13:54 +02:00

25 lines
733 B
JavaScript

/**
*
* 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()
})
}