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 Testing 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 event simulation utilities used by Selenium JavaScript atoms.

Description

goog.testing.events is a vendored copy of the Google Closure Library module. It provides utility functions for simulating browser events at the Closure level, generating events by calling goog.events.fireListeners rather than interfacing with the browser directly. This is designed for testing purposes and supports simulating mouse events, keyboard events, and other DOM events with configurable targets and coordinates. Selenium uses this as part of 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.testing.events');
goog.provide('goog.testing.events.Event');

// Event constructor for test events
goog.testing.events.Event = function(type, opt_target) { ... };

// Simulates mouse events, keyboard events, and other DOM interactions
// using pure JS dispatchers for robust, browser-independent testing.

Related Pages

Page Connections

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