Populate Text Field
Description
Appends or replaces the specified Text, either plain or secured, inside the selected text field.
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.
Mode Description Drivers Leverages hardware drivers to simulate interactions directly with UI components. Requires an active display and unlocked user session. Window Messages Utilizes 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 Type | Description |
---|---|
Plain | Select this type if plain Text is to be populated. The content from the 'Text' property would be utilized. |
Secured | Select 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 Mode | Description |
---|---|
Replace | Replaces the Text with the existing text |
Append | Appends the Text to the current text |
-
Window Instance - Specify the window instance identified through Window Selector. You can also type in the window instance for automation.
-
Search Parameters – Holds the information of the UI element identified through Element Selector.
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.
Catches no error if this Activity is present inside the Try-Catch block and the value of this property is True.
Example
Download Example