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

Function getExplicitAriaRole

util/playwright_selector.js:135–138  ·  view source on GitHub ↗

* Get explicit ARIA role from element (from roleUtils.ts line 270-274)

(element)

Source from the content-addressed store, hash-verified

133 * Get explicit ARIA role from element (from roleUtils.ts line 270-274)
134 */
135function getExplicitAriaRole(element) {
136 const roles = (element.getAttribute('role') || '').split(' ').map(role => role.trim());
137 return roles.find(role => validRoles.includes(role)) || null;
138}
139
140/**
141 * Get implicit ARIA role from element (from roleUtils.ts line 242-260)

Callers 1

getAriaRoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected