Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure Aria

From Leeroopedia
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

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)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment