Implementation:SeleniumHQ Selenium Closure Base
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library bootstrap module providing the core `goog` namespace and dependency management used by Selenium JavaScript atoms.
Description
goog (base.js) is a vendored copy of the Google Closure Library bootstrap file. It establishes the base `goog` namespace, sets up the global object reference, and provides the core dependency management system including `goog.provide`, `goog.require`, `goog.module`, and `goog.define`. In uncompiled mode it loads Closure's deps file for module resolution. Selenium uses this as the foundational layer 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
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/base.js
- Lines: 1-3551
Key Exports
// @provideGoog - bootstraps the goog namespace
var goog = goog || {};
goog.global // Reference to the global object
// Core dependency management:
// goog.provide(name)
// goog.require(name)
// goog.module(name)
// goog.define(name, defaultValue)
// goog.inherits(childCtor, parentCtor)
// goog.isObject(val), goog.isArray(val), goog.isString(val)
// goog.exportSymbol(publicPath, object)