Automatic Caching
TestDriver enables learning automatically. You do not need configuration. TestDriver computes the cache key from these. The cache key is the fingerprint that TestDriver uses to know what it learned:- File hash: The SHA-256 hash of the test file contents
- Selector prompt: The exact text description that you give to
find() - Screenshot context: The perceptual hash of the present screen state
- Platform: The operating system and the browser version
Managing the Cache
You can clear the cache in the TestDriver console. There, you also find previews of cached elements, the input prompts, and analytics on the cache hit rates.TestDriver Cache
Manage and clear your test cache from the TestDriver console.
Debugging Cache Hits and Misses
You can track what TestDriver has learned by inspecting cache performance in your tests:Configuring the Cache
You can configure how TestDriver learns globally when initializing TestDriver:find() call:
Caching with Variables
Custom cache keys prevent cache pollution when using variables in prompts, dramatically improving cache hit rates—so TestDriver reuses what it learned even when your data changes.Next
Run
Now that TestDriver has learned your app, run your tests in CI and locally—replaying the cache for fast, deterministic results.

