Skip to main content
After a test runs, make sure that the app did the correct thing. Validation has two parts: to find the elements that you want to check, and to make assertions about the state of your app. TestDriver uses the AI as a judge. It returns a boolean and the reason. This shows if your app is in the correct state.

Locating Elements

Locating Single Elements

Use natural language to describe elements. A description must be specific enough to find the element. But it must not be so specific that it breaks with small UI changes. For example:
TestDriver caches the found elements for better performance on later calls. Read more about element caching here.

Debugging Found Elements

After TestDriver finds an element, you can look at its properties for debug:
This outputs all element properties:

Working with Multiple Elements

Find and interact with multiple elements:

Making Assertions

Use AI-powered assertions to verify application state. TestDriver acts as a judge: it evaluates your natural-language statement against the current state of the app and returns a boolean plus reasoning explaining the verdict.
Assertions are not cached and always re-evaluated to ensure accuracy.

Next

Adapt

Drive your app forward by performing actions on the elements you’ve located and validated.