Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Caches element positions by comparing screenshots and template-matching elements to skip repeated AI calls in TestDriver tests.
50% 95%+45 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 11 of 22 without it.
3 of 3 safety checks passed
Not used yet
The cache system speeds up repeated test runs by comparing screenshots to cached results. When the screen hasn't changed significantly, cached element positions are reused instead of making an AI call.
Cache works at two levels:
find(), the SDK sends the current screenshot and cache metadata to the APIcacheKeyscreen threshold AND the element template match exceeds the element threshold, the cached position is returnedflowchart LR
A[Screenshot + cacheKey] --> B{Screen Diff\n< threshold?}
B -- Yes --> C{Template\nMatch OK?}
C -- Yes --> D[Return cached position]
B -- No --> E[AI Call - fresh]
C -- No --> F[AI Call - fresh]
const testdriver = new TestDriver({
cache: {
enabled: true,
thresholds: {
find: {
screen: 0.05, // 5% pixel diff allowed (default)
element: 0.8, // 80% OpenCV correlation required (default)
},
assert: 0.05, // 5% pixel diff for assertions (default)
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.