Implementation:SeleniumHQ Selenium Closure UI Menu
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library UI module providing a base menu class with keyboard and mouse event support, used by Selenium JavaScript atoms.
Description
goog.ui.Menu is a vendored copy of the Google Closure Library module. It extends `goog.ui.Container` with vertical orientation to provide a basic menu that can be bound to existing HTML structure or generate its own DOM. Menus host `goog.ui.MenuItem` children (with classname `goog-menuitem`) and support separators via HR elements. Unlike containers, menus are not keyboard-focusable by default. Selenium uses this for its JavaScript atom infrastructure.
Usage
This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/ui/menu.js
- Lines: 1-505
Key Exports
goog.provide('goog.ui.Menu');
goog.provide('goog.ui.Menu.EventType');