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 UI Menu

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

Key Exports

goog.provide('goog.ui.Menu');
goog.provide('goog.ui.Menu.EventType');

Related Pages

Page Connections

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