Skip to main content
Once a test runs, validate that the app did what it should. Validation has two parts: locating the elements you want to check, and making assertions about the state of your app. TestDriver uses AI as a judge, returning a boolean plus reasoning about whether your app is in the expected state.

Locating Elements

Locating Single Elements

Use natural language to describe elements. Descriptions should be specific enough to locate the element, but not too-specific that they break with minor UI changes. For example:
TestDriver will cache found elements for improved performance on subsequent calls. Learn more about element caching here.

Debugging Found Elements

After finding an element, you can inspect its properties for debugging:
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.