Automatic Caching
Learning is enabled automatically with zero configuration. The cache key—the fingerprint TestDriver uses to recognize what it already knows—is computed from:- File hash: SHA-256 hash of the test file contents
- Selector prompt: The exact text description passed to
find() - Screenshot context: Perceptual hash of the current screen state
- Platform: Operating system and browser version
Managing the Cache
You can clear the cache within the TestDriver console. There, you’ll also find previews of cached elements, the input prompts, as well as analytics on 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.

