SkillsReviewed · testdriverai

TestDriver Caching

TestDriver Caching is a skill-format guide for developers using TestDriver’s AI-assisted interface tests, but its examples assume a working TestDriver setup. It explains automatic caching of element lookups, similarity thresholds, diagnostic fields and custom keys for changing prompt data.

Researched 16 Nov 2026

In short.

TestDriver Caching is a skill-format guide for developers maintaining TestDriver interface tests, but cache reuse depends on matching test and screen context. It documents automatic cache keys, configurable similarity thresholds, diagnostic fields and custom keys for variable prompts. Its speed and deterministic-replay claims lack supporting benchmark methodology in the supplied source. Nothing was executed; runtime behavior, compatibility and actual costs remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is ai/skills/testdriver-caching in testdriverai/testdriverai, including its files and licence notices beside and above it. The supplied material contains only ai/skills/testdriver-caching/SKILL.md at commit 97d4d35d7727b2f83b1a73282aabf2e6e74824a2; no sibling files or related licence notices are present. The generated file’s caching.mdx source, TestDriver implementation, linked documentation, live console and service terms were not assessed. Nothing was executed, so caching correctness, speed, deterministic replay, costs and compatibility remain unverified.

The overview

identity

The resource is the testdriver:caching skill in the testdriverai/testdriverai repository, at ai/skills/testdriver-caching/SKILL.md. It contains explanatory text and JavaScript examples for TestDriver’s element cache. The file identifies itself as generated from caching.mdx; the cache implementation is outside the supplied material.

assessment

The guide offers useful reference material for an existing TestDriver suite: it explains why a lookup might miss the cache, how to inspect a hit and which settings affect reuse. Its specific API examples make it actionable, although package installation, version compatibility and a complete test with assertions are not covered.

The source describes faster, deterministic replay when cached elements match. It does not establish how reliably that matching works across realistic interface changes.

users

The clearest audience is developers and test engineers already using TestDriver to locate interface elements through natural-language descriptions. Teams with repeated lookups or prompts containing changing emails, order IDs or names may find the cache-key examples especially relevant.

Beginners can learn the caching concepts, but following the examples requires familiarity with JavaScript, asynchronous calls and an existing test environment.

capabilities

The guide documents automatic caching of elements found by the AI vision agent, instance-wide cache settings and per-find() overrides. It also shows custom cacheKey values intended to preserve reuse when variable text changes.

For diagnostics, the examples inspect cacheHit, cacheStrategy, similarity and cacheCreatedAt. The named strategies are exact, pixeldiff and template, but their algorithms are not explained. The guide points to a console for cached-element previews, prompts, hit-rate analytics and cache clearing [https://console.testdriver.ai/cache].

Using it

requirements

The examples use JavaScript, the testdriverai package, Vitest and the chrome preset from testdriverai/presets. The direct-construction example supplies an API key through process.env.TD_API_KEY. These describe the illustrated setup; the source does not establish that every TestDriver integration requires Vitest or Chrome.

Supported package, JavaScript runtime and browser versions are unspecified. Account prerequisites, network requirements and instructions for loading this skill into an assistant are also absent.

mechanism

According to the guide, TestDriver records a visual fingerprint when its AI agent finds an element. It describes this fingerprint as a perceptual hash of the screen state at the element’s location. A subsequent matching lookup can reuse the cached discovery without another AI analysis.

The automatic cache key incorporates the test file’s SHA-256 hash, exact selector prompt, screenshot context, operating system and browser version. Editing the test file invalidates its old entries. The precise matching algorithm and how custom keys interact with these automatic components are not specified.

setup

The guide says caching is enabled automatically without cache-specific configuration. Its configurable constructor example supplies apiKey, an instance cacheKey and cacheDefaults.threshold set to 0.05, described as 95% similarity.

An individual find() call can override matching with cacheThreshold: 0.01, described as 99% similarity. The examples therefore present lower threshold values as stricter matching. The source provides no installation command or version-specific setup guidance.

example

The basic example opens a page using the chrome preset and calls testdriver.find('More information link') twice. The intended sequence is AI discovery followed by a cached lookup when the context still matches.

For changing data, another example gives a prompt containing an email address the stable key email-input. An order-status example similarly shares a key across order IDs. These illustrate the intended API usage; they do not demonstrate that a shared key always identifies the correct element.

Assessment & evidence

limitations

The guide states a maximum speedup of 1.7 times and includes code comments showing 2.1 seconds for an initial lookup versus 12 milliseconds for a cached call. It provides no workload definition, environment, repetitions or underlying results, and does not explain how those figures relate. They do not establish expected performance.

False-match rates, behavior under animations or layout changes, cache retention, storage location and data handling are unspecified. The examples stop at element lookup and cache inspection; complete interaction sequences, assertions and CI reliability are unassessed.

reasoning

The documented key design suggests a tradeoff between reuse and sensitivity to change. Including the whole test-file hash can invalidate otherwise unchanged lookups after an edit, while exact prompt text can produce separate entries for changing values.

A stable custom key is most defensible when different prompt values still identify the same logical target. If an order ID distinguishes separate interface rows, the shared-key example needs correctness checks. This is an inference from the examples; the source does not explain the safeguards governing that case.

alternatives

The source does not compare other testing tools or caching implementations, so comparative suitability, reliability and cost are unknown. Within TestDriver, it presents automatic cache keys, custom keys for variable prompts and instance-wide or per-call matching thresholds as configuration choices.

evidence

The source is one SKILL.md file pinned to repository commit 97d4d35d7727b2f83b1a73282aabf2e6e74824a2 [https://raw.githubusercontent.com/testdriverai/testdriverai/97d4d35d7727b2f83b1a73282aabf2e6e74824a2/ai/skills/testdriver-caching/SKILL.md]. Its original folder address is [https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-caching].

This instructional source supports descriptions of the documented API and intended behavior. It supplies no implementation inspection, execution logs or independent performance results.

Access & freshness

costs

Actual costs are unknown. The source says cache hits avoid repeating AI vision analysis and describes replay as low cost, but provides no prices, billing units, quotas, plan restrictions or measured savings.

The effect of cache misses, storage and console use on billing is not established.

rights

No licence notice or reuse grant appears in the supplied SKILL.md. No licence text from beside or above the selected folder is supplied. Permissions to redistribute or adapt this file, and applicable TestDriver service terms, are therefore unknown from this evidence.

freshness

The supplied snapshot was captured on 2026-11-16 at 12:43:26.602 UTC and is tied to commit 97d4d35d7727b2f83b1a73282aabf2e6e74824a2. That capture time does not establish when the instructions were last updated.

The file names no TestDriver release or compatibility range. Whether the current default branch or available package differs from this snapshot is unknown.

actions

Before adopting the examples, confirm that the installed TestDriver version supports the documented options and diagnostic fields. Establish the applicable pricing and service terms separately.

In a representative test environment, compare initial and repeated lookups using cacheHit, cacheStrategy, similarity and cacheCreatedAt. Check file-edit invalidation and verify that custom keys still identify the intended element as data changes. Keep functional assertions alongside these checks so a cache hit is evaluated separately from a successful application outcome.

Evidence for this report

ai/skills/testdriver-caching/SKILL.mdselected · checked 2026-11-16