Skip to content

Leapwork Documentation

Set Element Checkbox

⚠ Early Access Feature

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 Checkboxblockis used to automate the selection or deselection of checkboxes within aD365 F&O application.

It is automatically created when a user interacts with a checkbox during recording using the D365 Fusion Recorder. This block allows you to explicitly define the checkbox state in the automation flow, ensuring consistent behavior across test scenarios or business processes.

Note: This block only works with browser windows launched using theLogin block or within the current D365 recording session.

Fully expanded, the D365 Set Element Checkbox blockshows the following properties:

d365-set-element-checkboxThe Block Header

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

Once the checkbox state has been successfully applied, the green output connector is activated.

The block title is generated based on the captured element, such“Set Email Subscription”,but can be edited by double-clicking the title, allowing for more descriptive naming within complex flows.

 

Checkbox State

This property determines whether the checkbox will be checked or unchecked in the D365 F&O application.

If the box is selected, the checkbox will be set to checked. If left unselected, the checkbox will be cleared. This explicit control is essential when ensuring a specific state, regardless of the checkbox’s previous value during flow execution.

Not Found

This green output connector is triggered if the checkbox element cannot be located within the defined timeout period.

It enables the creation of fallback conditions or error handling within the automation flow, allowing the process to react accordingly if the target element is missing.

 

Source Element

This optional property restricts the locator to a specific parent element, such as a panel or form section, where the checkbox resides. This improves the accuracy of the block when working on pages that contain multiple similar checkboxes.

In Early Access versions, this field is visible but not yet configurable.

Browser Window

This property specifies the browser window in which the checkbox interaction should take place.

In the current Early Access version of the Smart Recorder, only a single browser session is supported, and this field cannot be changed.

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

This field sets the maximum time (in seconds) that the block should wait for the checkbox to be located before triggering the Not Foundconnector. It is only visible when the Default Timeout checkbox is not selected.

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 is automatically canceled if it runs longer than the global timeout.

 

Created 22.04.25