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 Events

From Leeroopedia
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library module providing an event manager for both native browser event targets and custom JavaScript event targets, used by Selenium JavaScript atoms.

Description

goog.events is a vendored copy of the Google Closure Library module. It provides an abstraction over browsers' event systems, supporting both native browser event targets and custom JavaScript event targets (goog.events.Listenable). It includes simulation of the W3C event model's capture phase in older Internet Explorer versions, and delivers patched event objects with normalized properties across browsers. 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.events');
goog.provide('goog.events.CaptureSimulationMode');
goog.provide('goog.events.Key');
goog.provide('goog.events.ListenableType');

// Key functions: goog.events.listen, goog.events.unlisten, goog.events.removeAll
// Type aliases: goog.events.Key, goog.events.ListenableType

Related Pages

Page Connections

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