Skip to main content

Robot Task Activities - Text

The Text category contains a single activity for typing text into an application.


Send Text

Finds the specified process, window, or element if one is given, sets focus to it, and simulates typing text. If nothing is specified, the text is typed into the active window.

If a process name, window, or element is specified and cannot be found, the activity throws an exception.

Use the Click to select an element link to pick the target in the UI and fill the search properties automatically.

Properties

Find Element

PropertyDescription
AutomationIdThe AutomationId property, used to identify elements by id.
ClassNameThe ClassName property of the AutomationElement.
NameThe Name property of the AutomationElement.
ProcessNameThe owner process name of the element the activity will search in.
TextThe text of the element, compared when searching for the element. Supports wildcard patterns.
WindowHandleGets the window directly from a handle.
WindowTitleThe window title to search for. Supports wildcard patterns.

Input

PropertyDescription
CaseThe case applied to the text being sent: LowerCase, UpperCase, or None.
InputTextThe text that will be entered.
ModeHow existing content in the field is handled. See the table below.
TypingDelayDelay in milliseconds after each character, simulating typing from a keyboard.

Mode options

ModeBehavior
OverwriteClears all existing text before entering the new text.
AppendMoves to the end position before entering text.
InsertInFrontMoves to the start position before entering text.
NoneDoes nothing first, just enters the text at the current position.

Utils

PropertyDescription
WaitForElementTimeout in milliseconds to wait for the element to appear. Throws an exception if the timeout elapses and the element has not appeared.
Wait beforeWait in milliseconds before the activity executes. By default the playback speed from settings is used. Set a value to override it.
Wait afterWait in milliseconds after the activity executes. By default the playback speed from settings is used. Set a value to override it.

Tips

  • Use Overwrite mode when populating a field that may already contain a value, such as a form being reused across loop iterations. Leaving it as None appends to whatever is already there.
  • Set TypingDelay to a non zero value for applications that validate or reformat input as you type. Sending an entire string instantly can cause characters to be dropped.
  • Prefer identifying the target with AutomationId where available. It is the most stable identifier and does not change when the window is resized or the layout changes.
  • For text fields on a web page, use the Web Macro Populate field activity instead, which targets elements by CSS selector or XPath. See Web Input - Element Path.
  • To hide a sensitive value such as a password from the task log, use the Web Macro Populate field activity's Mask value option, or store the value in a VisualCron Credential and reference it as a variable.