Implementation:SeleniumHQ Selenium Closure Aria
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing ARIA role and state management utilities used by Selenium JavaScript atoms.
Description
goog.a11y.aria is a vendored copy of the Google Closure Library module. It provides utilities for adding, removing, and setting ARIA roles and states as defined by the W3C ARIA standard (WAI-ARIA). Selenium uses this as part of its JavaScript atom infrastructure for browser automation commands.
Usage
This module is consumed internally by Selenium's JavaScript atoms build system. It is not imported directly by end users.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/a11y/aria/aria.js
- Lines: 1-433
Key Exports
goog.provide('goog.a11y.aria');
// Key exported functions:
goog.a11y.aria.setRole(element, roleName)
goog.a11y.aria.getRole(element)
goog.a11y.aria.removeRole(element)
goog.a11y.aria.setState(element, stateName, value)
goog.a11y.aria.toggleState(el, attr)
goog.a11y.aria.removeState(element, stateName)
goog.a11y.aria.getState(element, stateName)
goog.a11y.aria.getActiveDescendant(element)
goog.a11y.aria.setActiveDescendant(element, activeElement)
goog.a11y.aria.getLabel(element)
goog.a11y.aria.setLabel(element, label)
goog.a11y.aria.hasState(element, stateName)
goog.a11y.aria.isContainerRole(element)