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