← ClaudeAtlas

testdriverelementslisted

Locate and interact with UI elements using AI
testdriverai/testdriverai · ★ 243 · Testing & QA · score 72
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from elements.mdx. DO NOT EDIT. --> ## Overview The TestDriver element finding system uses AI. It finds elements on the screen with natural language descriptions. The `find()` method returns an `Element` object. You can interact with the object. ## Finding Elements ### find() Find an element on the screen with a natural language description. ```javascript const element = await testdriver.find(description) ``` **Parameters:** - `description` (string) - A natural language description of the element to find **Returns:** `Promise<Element>` - The Element instance that TestDriver found **Example:** ```javascript // Find a button const submitButton = await testdriver.find('the submit button'); // Find an input field with context const emailField = await testdriver.find('email input field in the login form'); // Find an element by visual characteristics const redButton = await testdriver.find('red button in the top right corner'); ``` <Tip> Be specific in your descriptions. Include visual details, location context, or nearby text to make the accuracy better. </Tip> ## Element Class The `Element` class represents a located (or to-be-located) UI element. It provides methods for interaction and properties for element information. ### Methods #### found() Check if the element was successfully located. ```javascript element.found() ``` **Returns:** `boolean` - True if element coordinates were found **Example:** ```javascript const element = await testd