Skip to main content

Set Text

Sets the text content of a UI element by sending keystrokes.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Handle - The handle of the window containing the element.
  • Window Selector - The selector for identifying the target window.
  • Element Selector - The selector for identifying the target element.
  • Text - The text to set in the element.

How It Works

The Set Text node sets the text content of a UI element by sending keystrokes. When executed, the node:

  1. Uses the Window Selector and Element Selector to locate the target element
  2. Sends the specified text as keystrokes to the element with no delay between characters

Requirements

  • Both Window Selector and Element Selector are required to identify the target element
  • The target element must be able to receive text input (e.g., text boxes, input fields)

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Window Selector or Element Selector
  • Element not found
  • Element cannot receive text input

Usage Notes

  • This node sends text as literal keystrokes to the element
  • The element must have focus to receive the text input
  • Consider using Set Focus node before this node if focus is not already set
  • This approach works with most text input elements including text boxes, password fields, and rich text editors
  • The text is sent character by character with no interval delay
  • This node replaces the current content of the element with the new text
  • For appending text rather than replacing, consider using Send Key node instead