Skip to main content

Input into Web Element

Command description

Enter text in a specified web input element. The command scrolls the element into view if necessary. Human-like Input and Clipboard Input activate the webpage; silent methods can run in the background.

Command Input Parameters

input parametersInput parameter typeDescription
Webpage ObjectWebPageWebpage containing the input element
Web Input ElementWebElement or str (captured element UID, not element name, not ms-rpa-id)Select a captured element or one returned by Get Web Element, Get Similar Web Elements, or Get Related Web Elements
Input ContentstrText to enter
Append InputboolWhether to append the text instead of replacing existing content
Tab KeyboolWhether to press Tab after entering the text; default: False
Enter KeyboolWhether to press Enter after entering the text; default: False
Input MethodenumHuman-like Input, Clipboard Input, Silent Input, CDP Silent Input
Click Element Before InputboolWhether to click the element before entering text
Post-Click DelaynumberTime to wait between clicking the element and entering text, in seconds
English Keyboard LayoutboolWhether to force the US English keyboard layout when input-method switching produces incorrect text
Element Wait DurationnumberMaximum time to wait for the element to appear, in seconds. The command reports an error if the element does not appear in time
Post-Input DelaynumberTime to wait after entering the text, in seconds

Command Output Parameters

None

Type definition reference

Comparison of input methods

Input methodHow it worksUses the mouseSimilarity to human inputInput speedInput accuracyAdvantagesDisadvantages
Human-like InputBrings the browser forward, locates and clicks the element, then sends input through the Windows APIYes
Closest to physical keyboard input and broadly compatibleTakes control of the mouse and foreground window. The browser must be visible and unobstructed. Enable English Keyboard Layout if input-method switching produces incorrect text
Clipboard InputBrings the browser forward, locates and clicks the element, then pastes with Ctrl+VYes
Broadly compatible and close to normal user inputTakes control of the mouse, foreground window, and clipboard. The browser must be visible and unobstructed
Silent InputSets the value through webpage JavaScriptNo
Fast, accurate, and fully background-capableSome webpage elements do not respond because it differs from physical input
CDP Silent InputUses Chrome CDP to locate and click the element, then sends text through CDPNo
Fast, close to physical input, and background-capable even when the window is off-screen or covered by another windowThe target element cannot be covered by another webpage element
tip
  • Install the Runavelo browser extension before using this command.
  • CDP Silent Input requires Runavelo 7.7.0 or later and browser extension 2.4.0 or later.
  • See Capture Web Elements .

Example

FAQ

See Web Automation FAQ