MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / isSelected

Function isSelected

javascript/atoms/typescript/is-selected.ts:24–29  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

22// threw ELEMENT_NOT_SELECTABLE there instead; this is the shape the bindings
23// and Appium consume.
24function isSelected(element: Element): boolean {
25 if (!isSelectable(element)) {
26 return false
27 }
28 return isSelectedState(element)
29}
30
31export default isSelected

Callers

nothing calls this directly

Calls 2

isSelectedStateFunction · 0.85
isSelectableFunction · 0.50

Tested by

no test coverage detected