MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / isSelectable

Function isSelectable

javascript/atoms/typescript/get-attribute.ts:96–105  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

94 }
95
96 function isSelectable(element: Element): boolean {
97 if (isElement(element, 'OPTION')) {
98 return true;
99 }
100 if (isElement(element, 'INPUT')) {
101 const type = (element as HTMLInputElement).type.toLowerCase();
102 return type === 'checkbox' || type === 'radio';
103 }
104 return false;
105 }
106
107 function isSelected(element: Element): boolean {
108 if (isElement(element, 'OPTION')) {

Callers 1

get-attribute.tsFile · 0.85

Calls 1

isElementFunction · 0.70

Tested by

no test coverage detected