Implementation:SeleniumHQ Selenium Closure Testing Events
| 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
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/testing/events/events.js
- Lines: 1-910
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.