Implementation:SeleniumHQ Selenium Closure UI MenuButton
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library UI module providing a menu button control that composes a button with a dropdown menu, used by Selenium JavaScript atoms.
Description
goog.ui.MenuButton is a vendored copy of the Google Closure Library module. It extends `goog.ui.Button` by composing a button with a dropdown arrow and a popup menu. It supports the OPENED state, handles menu positioning via `goog.positioning.MenuAnchoredPosition`, and manages keyboard and mouse event delegation between the button and its associated menu. 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/menubutton.js
- Lines: 1-1143
Key Exports
goog.provide('goog.ui.MenuButton');