forked from enviPath/enviPy
Current Dev State
This commit is contained in:
23
static/js/ketcher2/node_modules/webdriverio/lib/protocol/elementIdClick.js
generated
vendored
Normal file
23
static/js/ketcher2/node_modules/webdriverio/lib/protocol/elementIdClick.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
*
|
||||
* Click on an element.
|
||||
*
|
||||
* @param {String} ID ID of a WebElement JSON object to route the command to
|
||||
*
|
||||
* @see https://w3c.github.io/webdriver/webdriver-spec.html#dfn-element-click
|
||||
* @type protocol
|
||||
*
|
||||
*/
|
||||
|
||||
import { ProtocolError } from '../utils/ErrorHandler'
|
||||
|
||||
export default function elementIdClick (id) {
|
||||
if (typeof id !== 'string' && typeof id !== 'number') {
|
||||
throw new ProtocolError('number or type of arguments don\'t agree with elementIdClick protocol command')
|
||||
}
|
||||
|
||||
return this.requestHandler.create({
|
||||
path: `/session/:sessionId/element/${id}/click`,
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user