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 Dom Forms

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

Overview

Vendored Google Closure Library module providing form and form element manipulation utilities used by Selenium JavaScript atoms.

Description

goog.dom.forms is a vendored copy of the Google Closure Library module. It provides utilities for manipulating HTML forms and their elements, including form submission (with new-window support for untrusted URLs), reading and setting form data as maps or query strings, getting and setting values for various input types (text, checkbox, radio, select single/multiple), disabling form elements, and focusing/selecting inputs. 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.dom.forms');

// Key exported functions:
goog.dom.forms.submitFormInNewWindow(form, opt_submitElement)
goog.dom.forms.submitFormDataInNewWindow(actionUri, method, formData)
goog.dom.forms.getFormDataMap(form)
goog.dom.forms.getFormDataString(form)
goog.dom.forms.hasFileInput(form)
goog.dom.forms.setDisabled(el, disabled)
goog.dom.forms.focusAndSelect(el)
goog.dom.forms.hasValue(el)
goog.dom.forms.getValue(input)
goog.dom.forms.getValueByName(form, name)
goog.dom.forms.setValue(el, opt_value)

Related Pages

Page Connections

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