Selenium icon

Selenium

Interact with a Selenium Server via W3C API

Send Keys

AI-generated

Summary

Send the configured text to elements in an active Selenium session, processing each entry in order. Each entry locates an element with its selected strategy and posts the text as keystrokes; a lookup or request failure stops execution unless the node is set to continue on fail.

Inputs

  • Session ID (required) — ID of the active Selenium session.
  • Timeout — Maximum time to wait for each request, in milliseconds; defaults to 10000.
  • Key Entries (required) — Ordered list of entries. Each has a selector type (CSS selector by default; also XPath, ID, name, tag name, class name, link text, or partial link text), a selector value, and the text to type.

Output shape

A single item with a JSON object containing success, action, entriesSent, and sessionId.

entriesSent is the number of configured entries processed. With no entries, the operation still returns success with entriesSent set to 0. Errors stop execution unless continue on fail is enabled.

Links

Discussion