Get Green Screen Text

The Get Text block fetches text from a specific location on a green screen (row and column). You can also use an area instead of a single location, allowing Leapwork to fetch text from a rectangular region spanning multiple rows and columns.

Note: The Green Screen Recorder and green screen building blocks are available with Enterprise plans.

Fully expanded, the Get Text block shows the following properties:

image-20260129-130755.png

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

  1. Drag Get Text onto the canvas.

  2. Connect the block in the flow and specify Area. If you enable Area, also specify Position or Size. Optionally enable Trim spaces and adjust timeout-related settings if needed.

  3. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: The green input connector triggers this block to execute. The green output connector triggers when the text from the specified location or area is successfully fetched. You can rename the block by double-clicking the header text and typing a new title.

  • Area: Controls whether Leapwork fetches text from a single location or from a rectangular area.

    • Position: Available when Area is enabled. Defines the starting position of the rectangular area to fetch text from (the top-left point of the area).

    • Size: Available when Area is enabled. Defines the dimensions of the rectangular area to fetch text from (how many rows and columns the area spans).

  • Text found: Outputs the text that was fetched from the green screen.

  • Not found: Triggers if the text is not found before the timeout. This is typically used to branch the flow or explicitly fail a case by linking it to a Fail block.

  • Trim spaces: Removes whitespace before and after the fetched text.

  • Default timeout: Controls whether the block uses the default timeout from the flow settings or a custom timeout value.

  • Timeout: The maximum time spent fetching text before giving up and triggering Not found. This value is used when Default timeout is not selected (default is 10 seconds unless changed manually).

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.