Implementation:SeleniumHQ Selenium Closure Structs
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing generic methods for collection-like classes used by Selenium JavaScript atoms.
Description
goog.structs is a vendored copy of the Google Closure Library module. It provides generic utility functions that work across collection-like objects including Map, Set, Array, Object, and other classes implementing collection-like methods. Functions include getCount, getValues, getKeys, and other operations that abstract over different collection types by detecting available methods (getCount, getValues, etc.) or falling back to array/object handling. 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/structs/structs.js
- Lines: 1-382
Key Exports
goog.provide('goog.structs');
goog.structs.getCount = function(col) { ... };
goog.structs.getValues = function(col) { ... };
goog.structs.getKeys = function(col) { ... };