Syntax
Arguments
element: Element index from snapshot (optional)text: Text to input (required)
Options
--session <id>: Session ID to use--element <N>: Target element by index number--selector <css>: Target element by CSS selector--description <text>: Target element by description--text <text>: Alternative way to specify input text
Examples
Input Text by Element Index
Input Text with —element Flag
Input Text by CSS Selector
Input Text by Description
Using —text Flag
Multi-line Input
Response
Argument Parsing
Theinput command accepts arguments in multiple formats:
Related Commands
type <text>: Type text into currently focused elementpress <key>: Press a keyboard key
Element Targeting
Like other element commands, you can target elements in three ways:- By Index: Use the element number from a
snapshotresult - By Selector: Use a CSS selector to target the element
- By Description: Use a human-readable description (leverages selector caching)