Building Blocks

Building Blocks

Guidelines for Using the AI Blocks

This article outlines suggestions and examples of using the AI block so that you can make the most out of the AI Blocks and ensure that the test data generated is appropriate for your automation needs. This article is divided into sections and below table can help you navigate through:

Capturing Dropdowns in a UI Application When Select UI Element Block Isn’t Working

In this article, you will learn about the alternative methods for capturing UI dropdowns when the Select UI Element block is not working as expected. Usually, the Select UI Element block is the perfect solution for picking options in dropdowns, but sometimes it might not function properly.

Capturing Read-only Element in UI Application with Type Text Block

In this article, we will discuss how to handle read-only elements in UI applications, where using the Set UI Element Value block might not work as expected. In such cases, the Type Text block provides an effective workaround. Let’s take the example of a calculator application.

Is there any building block for IF Statements?

The building blocks that interact with applications (be it Web, Desktop, or Image & Text) such as Find Web Element, Click UI Element, Find Image, etc. have in-built logic for "If-Then-Else". There is one input connector and two output connectors in these blocks that describe the IF-ELSE behavior.

How to select a multi-select list box using Leapwork?

For selecting multiple elements from a multi-select list box, you need to perform multiple click operations on the corresponding list items (or group items) that you want to select.

How to use Run Web JavaScript block to Click and Get Web Element text.

Leapwork has different building blocks to interact with web page elements. But sometimes due to some issues in the application, the interaction with web elements does not work as expected.

How to perform a “Ctrl + Left Click” action in Leapwork

In Leapwork, there are scenarios where end-users are looking to perform the operation "Ctrl + Left Click" to select multiple options in a list or open the link in a new window.

How to verify the state of a checkbox

The state of the checkbox (checked/unchecked) is usually reflected in the attributes. You can attach a log message to the 'Attributes' property of the find web element to see the state of the checkbox.

How to enable flow branching using Switch block?

In Leapwork, many times, users face cases where based upon the condition, flow branching is to be enabled in order to perform different actions based on different input conditions.

How to use Chromium Edge Browser in Leapwork

Chromium is an open-source browser project aimed at building a safer, faster, and more stable way for all Internet users to experience the web. Chromium is a subset of Chrome.