Extract Value from Element
The Extract Value from Element feature retrieves the value of a specific element during a test and stores it in a variable for later use. This ensures that dynamically generated values remain accessible and reusable throughout the test.
Example:
When a user signs up and receives an acknowledgment number, they may need to store it in a variable and reference it in subsequent interactions or validations to ensure test accuracy.
How to extract values from elements
You can use the Extract Value from Element feature in the AI Recorder at any point while recording a scenario.

Select Extract Value from Element in the AI Recorder.
Click the element to extract its value.
Choose the property to retrieve (Text, Value, Href, Src, Alt).
Enter a variable name to store the extracted value.
Save the step.
The AI Recorder adds a Then step to retrieve the selected value and store it as a runtime variable.

After saving, the extracted value appears in the Test Data section when the recorder view is expanded.

In the saved scenario, the extracted values are referenced in the Examples section and used dynamically in later steps.

Using Extracted Test Data
After extracting a value, you can use it in different steps of your test scenario. The AI Recorder references the stored test data automatically, ensuring consistency and reducing manual input.
Use Extracted Data in Input Fields
Copy the extracted value from the Test Data section.
Paste it into an input field where needed.
The AI Recorder automatically references the test data variable in the step.
Use Extracted Data in Assertions
Use the extracted value to validate expected results in assertions.
Instead of hardcoding values, reference the test data variable in a Then step.
This ensures the test dynamically verifies UI changes based on actual runtime values.