Install any skill in seconds. Free to start, no credit card required.
Get Started Free →testdriverai/testdriver:errors
Custom error classes and error handling
Passed 22 of 22 test cases with the skill, and 7 of 22 without it.
and 26 more in the full report
15 fixed7 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 15 test cases the skill fixed. Same model, same prompt, with and without the skill.
When calling testdriver.act('complete registration form') fails and throws an AIError, which property contains the exact string 'complete registration form'?
| Checked | Without skill | With skill |
|---|---|---|
| The response identifies error.task. | Missed | Passed |
The instructions your model reads when the skill loads.
TestDriver provides custom error classes with rich debugging information. These are exported from the SDK and can be used for instanceof checks in your tests.
import TestDriver, { ElementNotFoundError, AIError } from 'testdriverai';
Thrown when find() cannot locate an element on screen, or when calling click()/hover() on an unfound element.
try {
await testdriver.find('nonexistent button').click();
} catch (error) {
if (error instanceof ElementNotFoundError) {
console.log(error.description); // "nonexistent button"
console.log(error.screenshotPath); // path to debug screenshot
console.log(error.pixelDiffPath); // path to pixel diff image
}
}
test cases passed, vs 7 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.