MCPcopy Create free account
hub / github.com/InverseUI/InverseUI-Recorder / getImplicitAriaRole

Function getImplicitAriaRole

util/playwright_selector.js:143–147  ·  view source on GitHub ↗

* Get implicit ARIA role from element (from roleUtils.ts line 242-260)

(element)

Source from the content-addressed store, hash-verified

141 * Get implicit ARIA role from element (from roleUtils.ts line 242-260)
142 */
143function getImplicitAriaRole(element) {
144 const tagName = element.nodeName;
145 const roleFunc = kImplicitRoleByTagName[tagName];
146 return roleFunc ? roleFunc(element) : null;
147}
148
149/**
150 * Get ARIA role (explicit or implicit) - from roleUtils.ts lines 281-291

Callers 1

getAriaRoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected