Set Area | Leapwork Docs
The Set area block is used to define an area value, typically a region of the screen, using a position and size. This area value is then reused in other blocks such as Find text or Click image to limit their operation to a specific part of the screen.
The Set area block has only one property:
Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.
Quick-start
- Drag Set area onto the canvas.
- Specify the Area value and connect it to the blocks that should use this area.
- Run the flow when it’s ready.
Building block parameters
Parameters
- Block header: Shows the name of the Set area block. You can rename it by double-clicking the header and typing a new title. This block has no green execution connectors in the header because it is not executed on its own; it only provides an area value to other blocks.
- Area value: Defines the area as X, Y, Width, Height coordinates, starting from the upper-left pixel of the screen. The top-left corner of the screen is position
0, 0.
You can expand this parameter to work with the position ( X, Y) and size ( Width, Height) separately, and you can pass the value to other blocks that accept an area input.
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. |