Skip to content

Validate and Get Element

The Validate and Get blocks are part of a single smart block in Leapwork’s Salesforce Fusion Recorder.
They allow you to either verify UI conditions or extract values from elements in a Salesforce interface, supporting automation of validation and data retrieval actions during testing and process execution.

To access these actions, hold Shift and left-click on a target UI element while recording. This opens the block creation menu, where you can choose the desired Action: either Validate or Get.

Note: The Salesforce Validate and Get blocks work only in browser windows launched using the Login block or within the current Salesforce recording session.

To learn more about each action, use the links below to jump to the corresponding block documentation.

Validate Block

The Validate block is used to confirm that a UI element in a Salesforce application meets a specific condition, such as containing a value, being visible, or being enabled. It also supports validating checkbox and toggle elements by checking whether they are set to Checked or Unchecked, or On or Off. It enables the automation flow to behave conditionally based on whether the expected state is met.

Additionally, it supports validate actions performed within grid elements (such as list or table views), allowing users to automate selections directly in tabular interfaces.

Fully expanded, the Salesforce Validate block shows the following properties:

SF_Validate-block

Note: The block design shown above is part of the new Elegance Design, introduced in Leapwork version 2025.3. Earlier versions may display a different layout.

The Block Header

The green input connector at the top left triggers the execution of the block when the automation flow reaches this step.

If the validation condition is met, the green output connector is activated.

The block title is automatically generated based on the element being validated, e.g., “Validate Name Field”, but it can be edited by double-clicking the title for clarity.

Action

Defines the purpose of the block. In this case, select Validate to perform a verification check on the selected UI element.

Validation Text

Specifies the expected text content of the element. This value will be used for comparison during validation.

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.

Is case sensitive

When enabled (checked by default), the validation will only pass if the text matches exactly, including upper and lowercase characters.
Disable this option to allow case-insensitive comparisons.

Fail

This output connector is triggered if the validation condition is not met within the timeout.

Await not found

When checked, the block assumes that the web element is currently present and waits until it can no longer be found on the page before proceeding.

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 defined in the flow settings will be applied.

Timeout

The maximum time allowed to validate the specified text before giving up and triggering the Fail connector.

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.

 

Get Block

The Salesforce Get block is used to extract the content of a UI element in a Salesforce application.
It enables you to retrieve live values such as field content, labels, or calculated results during runtime and reuse them elsewhere in your automation flow.

This block is created during recording using the Salesforce Fusion Recorder by pressing Shift and left-clicking on a target element, then selecting Get from the available actions.

Additionally, it supports get actions performed within grid elements (such as list or table views), allowing users to automate selections directly in tabular interfaces.

Fully expanded, the Salesforce Get block shows the following properties.

SF_Get-block

Note: The block design shown above is part of the new Elegance Design, introduced in Leapwork version 2025.3. Earlier versions may display a different layout.

The Block Header

The green input connector at the top left triggers the execution of the block when the flow reaches this step.
Once the value has been successfully extracted, the Text Found output connector is activated.
The block title is automatically named based on the target element, for example Get Opportunity Name, but can be renamed by double-clicking the title.

Action

Defines the purpose of the block.
Set to Get to retrieve the current value of the selected element.
This dropdown also includes the Validate action, allowing you to switch between behaviors within the same block.

Text Found

This output connector is triggered when the element is found and its value is successfully extracted.

Fail

This output connector is triggered if the element is not found or the value cannot be retrieved within the timeout.

Await not found

When checked, the block assumes that the web element is currently present and waits until it can no longer be found on the page before proceeding.

Default Timeout

If the Default Timeout property checkbox is not selected, the timeout value is 10 seconds.
If selected, the Default Timeout value defined in the flow settings will be applied.

Timeout

The maximum time allowed to get the specified element before giving up and triggering the Fail connector.

Note: All cases have a global timeout that can be configured in the Settings panel. This is unrelated to the timeout of a single block. A running case will automatically be cancelled if it exceeds the global timeout.

 

Created 27.10.25