← ClaudeAtlas

testdriverassertlisted

Make AI-powered assertions about screen state
testdriverai/testdriverai · ★ 243 · Testing & QA · score 72
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from assert.mdx. DO NOT EDIT. --> ## Overview Make assertions about the screen state with natural language and AI. The AI examines the screen. It makes sure that your assertion is true. ## Syntax ```javascript await testdriver.assert(assertion) await testdriver.assert(assertion, options) ``` ## Parameters <ParamField path="assertion" type="string" required> Natural language description of what should be true </ParamField> <ParamField path="options" type="object"> Optional configuration <Expandable title="properties"> <ParamField path="ai" type="object"> AI sampling configuration for this assert call (overrides global `ai` config from constructor). <Expandable title="properties"> <ParamField path="temperature" type="number"> Controls randomness. `0` = deterministic, higher = more creative. Default: model default. </ParamField> <ParamField path="top" type="object"> Sampling parameters <Expandable title="properties"> <ParamField path="p" type="number"> Top-P (nucleus sampling). Range: 0-1. </ParamField> <ParamField path="k" type="number"> Top-K sampling. `1` = most deterministic. </ParamField> </Expandable> </ParamField> </Expandable> </ParamField> </Expandable> </ParamField> ## Returns `Promise<boolean>` - `true` if the assertion pas