get and validate.md

Get and Validate 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.

Get Block

The Get building block extracts the content of a UI element in a Salesforce application so you can reuse live values (such as field content, labels, or calculated results) elsewhere in your flow. It is created during recording with the Salesforce Fusion Recorder by pressing Shift + left-click on an element and selecting Get. It also supports getting values inside grid elements (lists/tables).

Note: The layout shown in some documentation is part of the Elegance Design, introduced in Leapwork 2025.3. Earlier versions may display a different layout.

Quick-start

  1. Drag Get block onto the canvas (or record it with the Salesforce Fusion Recorder).

  2. Connect the block in the flow and use the output Text Found where needed. Optionally, adjust timeout behavior.

  3. Run the flow when it's ready.

Building block parameters

Parameters

Validate Block

The Validate building block confirms that a UI element in a Salesforce application meets a specific condition (for example containing a value, being visible, or being enabled). It also supports validating checkbox/toggle elements by checking whether they are Checked/Unchecked or On/Off, and it can validate actions inside grid elements (lists/tables) to support tabular automation.

Quick-start

  1. Drag Validate block onto the canvas.

  2. Connect the block in the flow and specify the basic parameters required for this block to operate: Action (set to Validate) and Validation Text (when validating text). Optionally, adjust other parameters if needed.

  3. Run the flow when it's ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.
Salesforce FAQ Frequently asked questions about Salesforce
Salesforce Fusion Recorder How to use the Salesforce Fusion Recorder