Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,22 @@
/**
*
* 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
*
*/
import { ProtocolError } from '../utils/ErrorHandler'
export default function elementIdSelected (id) {
if (typeof id !== 'string' && typeof id !== 'number') {
throw new ProtocolError('number or type of arguments don\'t agree with elementIdSelected protocol command')
}
return this.requestHandler.create(`/session/:sessionId/element/${id}/selected`)
}