Leapwork Documentation
Set Element Text
This feature is Early Access and may change based on user feedback and testing. Share your thoughts with our team to help us improve it.
The Set Element Text block is used to input text into fields within a D365 F&Oapplication. This includes standard text inputs such as usernames, search bars, or any editable text field encountered during recording.
The block is automatically generated when the user types into a field while using the D365 Fusion Recorder. It supports both visible and password-protected inputs and includes options to clear existing content before entering new text.
Note:This block works only in browser windows launched using the Login block or within the current D365 recording session.
Fully expanded, the D365 Set Element Text blockshows the following properties:
The Block Header
The green input connector at the top left triggers the block’s execution when the automation flow reaches this step.
The green output connector activates once the value has been successfully entered into the target field.
The block title (“Set <element name>”) is automatically named based on the element being edited but can be customized by double-clicking the header and typing a new label to improve clarity in more complex flows.
Text Value
This field allows you to specify the text that should be entered into the target input field. The value can be typed directly into the typebox.
Text fields
This section appears only when the Type is set to Text.A button labeled Add field allows you to insert dynamic fields into the text value, for example, a variable or value captured earlier in the flow. This enables context-sensitive automation where input values can vary with each execution.
Type
The Type dropdown determines how the entered text is treated. Choosing Text will show the typed value clearly, while selecting Passwordwill conceal the input. This is especially useful for workflows that involve authentication or other sensitive information.
Clear Field Before Typing
When enabled, this checkbox ensures the input field is cleared before entering the new value. If left unchecked, the block will append the new text to any existing content in the field.
Not Found
This green output connector is triggered if the target field is not found within the allotted timeout. It allows you to create fallback logic or define error-handling behavior when an expected element is missing.
Source Element
This property can be set if you want the element locator to search only within a specific parent element. In Early Access versions this setting is not yet configurable.
Browser Window
This field allows the user to specify the browser window instance where the input action will be performed. In Early Access versions, only a single browser session is supported, and this setting is not yet configurable.
Default timeout
If the Default Timeout property checkbox is not selected, then the timeout value is 10 seconds. If the property checkbox is selected, then the Default timeout value selected in the flow settings will be applicable.
Timeout
The maximum time spent extracting the specified information before giving up and triggering the Not Foundconnector (see above).
Note: All cases have a “global timeout” that can be configured in the “Settings” panel. This is unrelated to the timeout of a single building block. However, a running case will automatically be cancelled if it runs for longer than the global timeout.
Created 10.04.25