Performing Actions
TestDriver gives you many actions. You can click, type, hover, and scroll. For a full list, read the API Reference.Chaining Actions
TestDriver lets you chain methods for cleaner code:Waiting for Dynamic Content
By default,find() polls automatically for a maximum of 10 seconds. It tries again each 5 seconds until it finds the element. Thus TestDriver finds most elements that show after short async operations. You do not need more configuration.
For longer operations, make the timeout larger:
Flake Prevention
TestDriver automatically waits for the screen and network to stabilize after each action using redraw detection. This prevents flaky tests caused by animations, loading states, or dynamic content updates.Redraw detection adds a small delay after each action but significantly reduces test flakiness.
Simple Delays with wait()
For simple pauses — waiting for animations, transitions, or state changes after an action — use wait():
For waiting for specific elements to appear, prefer
find() with a timeout option. Use wait() only for simple time-based pauses.Next: Debug
Use screenshots and run output to see exactly what your test saw and pinpoint failures.

