UNPKG

webdriverio-workflo

Version:

This is a customized version of webdriverio for use with workflo framework.

29 lines (24 loc) 915 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = elementIdSelected; var _ErrorHandler = require('../utils/ErrorHandler'); function elementIdSelected(id) { if (typeof id !== 'string' && typeof id !== 'number') { throw new _ErrorHandler.ProtocolError('number or type of arguments don\'t agree with elementIdSelected protocol command'); } return this.requestHandler.create(`/session/:sessionId/element/${id}/selected`); } /** * * Determine if an OPTION element, or an INPUT element of type checkbox or * radiobutton is currently selected. * * @param {String} ID ID of a WebElement JSON object to route the command to * @return {Boolean} true if the element is selected. * * @see https://w3c.github.io/webdriver/webdriver-spec.html#is-element-selected * @type protocol * */ module.exports = exports['default'];