Extract Text from Screen
You can easily extract text from any UI element on the device screen and store it in a variable for later use in your test.
Test Steps:
Select the Element: While in recording or inspection mode, click on the desired element on the device screen. A green box will highlight the selected element.
Choose the Extraction Action: A context menu will appear with several interaction options. Select "Extract text to a variable".
A new step will be added to your test flow, which will save the text from the selected element (in this case, "Constans II (son of Constantine III)") into a variable when the test is run.

Using Regex for Text Extraction
You can also extract specific text patterns from strings

Need help creating a regex pattern? Click on Use AI to write regex to ask Finalrun AI to generate one for you based on your requirements, then use it directly in our platform.

Examples
Example 1: Extracting amount
Example 2: Extracting Phone Numbers
Example 3: Extracting URLs
Example 4: Named Capture Groups
Example 5: Extracting Dates
Example 6: Extracting Product Codes
Example 7: Extracting Hashtags
Example 8: Extracting Time
Example 9: Extracting Names
Example 10: Extracting IP Addresses
Features Not Covered
Our platform focuses on text extraction and does not support:
Lookahead/lookbehind assertions
Atomic grouping
Conditional patterns
Advanced backtracking controls
Last updated