get text.md

Get text‎

The Get text block uses OCR to retrieve text that is not known in advance from either the entire screen or a defined area. You can apply formatting and filtering rules so that only text matching a specific pattern is returned (for example, text that fits the format Status: [TEXT] today and starts with "Green"). The retrieved text can then be used elsewhere in the flow for decisions, validation, or logging.

See the Capture text on screen lesson for examples of how to use the Get text block. Similar functionality is provided in the Get number block, and an example of this can be seen in the Use Numbers and Variables video.

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

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 set at least the Language . Optionally narrow the Area, and configure rules such as Find format, Filter, and OCR settings (Engine, OCR Mode, OCR Precision).
  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.