Skip to main content

Populate Text Field

Description

Appends or replaces the specified Text, either plain or secured, inside the selected text field.

note

This activity might require an active display and an unlocked user session to successfully simulate interactions with UI components. For more detailed information, please refer to the relevant section in the Desktop Automation Notes.

Properties

Input

  • Automation Mode – Defines the method used to automate UI elements through hardware drivers or the Send Windows Messages API. The default option is Drivers.

    ModeDescription
    DriversLeverages hardware drivers to simulate interactions directly with UI components. Requires an active display and unlocked user session.
    Window MessagesUtilizes the Send Windows Messages API for automation, eliminating the need for an active display or unlocked session.
    Note: This mode is compatible only with certain types of applications that support window message-based automation and may not work with others, such as WPF applications.
  • Delay After – Sets the Delay time in milliseconds with a default value of 100 milliseconds. Waits for the input Delay time after executing this Activity.

  • Delay Before – Sets the Delay time in milliseconds with a default value of 100 milliseconds. Waits for the input Delay time before the Activity begins execution.

  • Secured Text - Specify the confidential or hidden Text to insert into the selected field. It accepts a string of type SecureString.

  • Text - Specify the plain Text to insert into the selected field.

  • Text Type - The type of Text needs to populate in a text field. Select the appropriate type from the dropdown.

Text TypeDescription
PlainSelect this type if plain Text is to be populated. The content from the 'Text' property would be utilized.
SecuredSelect this type if Secured Text is to be populated. The content from the 'Secured Text' property would be utilized.

Text Mode - Specify the operation mode from the dropdown.

Text ModeDescription
ReplaceReplaces the Text with the existing text
AppendAppends the Text to the current text

Misc

  • DisplayName – The display name of the Activity.

  • Private – Logs the variable and argument values at the Verbose level when unchecked.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the Activity throws an error. If True, the Activity continues without throwing any exceptions. If False, the Activity throws an exception. The default value is False.
note

Catches no error if this Activity is present inside the Try-Catch block and the value of this property is True.

Example

Download Example

Populate Text Field