Performing Actions
TestDriver provides a variety of actions you can perform, like clicking, typing, hovering, and scrolling. For a full list, see the API Reference.Chaining Actions
TestDriver supports method chaining for cleaner code:Waiting for Dynamic Content
By default,find() automatically polls for up to 10 seconds, retrying every 5 seconds until the element is found. This means most elements that appear after short async operations will be found without any extra configuration.
For longer operations, increase the timeout:
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.

