# TestDriver - [Quickstart](https://docs.testdriver.ai/quickstart.md): Start with TestDriver from GitHub, Claude Code, VS Code, Cursor, any MCP client, or your own project. - [Add TestDriver to GitHub](https://docs.testdriver.ai/quickstart-github.md): Get an AI code review on every pull request, backed by a real run of your app. - [Add TestDriver to Claude Code](https://docs.testdriver.ai/quickstart-claude.md): Install the TestDriver connector from the Claude directory, and Claude Code can drive a live sandbox. - [Add TestDriver to VS Code and Cursor](https://docs.testdriver.ai/quickstart-vscode.md): Set up TestDriver in your editor and watch tests run in a live preview panel. - [MCP Setup](https://docs.testdriver.ai/mcp-setup.md): Connect Claude, Cursor, VS Code, ChatGPT, or any MCP client to TestDriver with one URL. - [The TestDriver agent](https://docs.testdriver.ai/agent.md): How the TestDriver agent reviews pull requests, builds tests, and answers @mentions on GitHub. - [What is TestDriver?](https://docs.testdriver.ai/what-is-testdriver.md): TestDriver tests apps by seeing the screen and controlling a real machine, without selectors. - [Assert that a page loaded](https://docs.testdriver.ai/examples/assert.md): Open a login page in Chrome and use assert() to check that it loaded. - [Type into a form](https://docs.testdriver.ai/examples/type.md): Type into a login form and assert on the validation message for a missing password. - [Click a button by its label](https://docs.testdriver.ai/examples/click-button.md): Click Sign In on an empty login form and assert that a validation error appears. - [Click an icon](https://docs.testdriver.ai/examples/click-icon.md): Log in to a demo store, click the cart icon, and assert that the cart is empty. - [Add an item to a cart](https://docs.testdriver.ai/examples/add-to-cart.md): Log in to a demo store, add a product to the cart, and assert that it's there. - [Use keyboard shortcuts](https://docs.testdriver.ai/examples/press-keys.md): Use pressKeys() to open a tab, open DevTools, and navigate in Chrome. - [Scroll a page](https://docs.testdriver.ai/examples/scroll.md): Scroll a page down and assert that its heading has scrolled out of view. - [Navigate with the address bar and scroll](https://docs.testdriver.ai/examples/navigate-and-scroll.md): Navigate by typing in Chrome's address bar, then scroll and assert on the result. - [Find and click every matching element](https://docs.testdriver.ai/examples/findall-coffee-icons.md): Use findAll() to locate every coffee cup icon in a grid and click each one. - [Handle an element that isn't found](https://docs.testdriver.ai/examples/element-not-found.md): See how find() returns an unfound element instead of throwing when nothing matches. - [List the elements on screen](https://docs.testdriver.ai/examples/parse.md): Open a website and use parse() to list the UI elements on screen. - [Install a Linux package](https://docs.testdriver.ai/examples/installer.md): Use provision.installer() to install command-line and desktop apps, and download a script, on Linux. - [Launch VS Code](https://docs.testdriver.ai/examples/launch-vscode-linux.md): Launch VS Code in a Linux sandbox and check that its window opens. - [Generate tests with AI](https://docs.testdriver.ai/generating-tests.md): Describe a flow in plain language, and the agent writes and runs the test. - [Perform actions](https://docs.testdriver.ai/performing-actions.md): Click, type, scroll, and read the screen, and wait for a changing UI. - [Run tests](https://docs.testdriver.ai/copilot/running-tests.md): Run tests from the terminal or VS Code, in parallel, and watch them live. - [Debug a failing test](https://docs.testdriver.ai/debugging-with-screenshots.md): Find out why a test failed from its replay and step-by-step screenshots. - [Speed up reruns with caching](https://docs.testdriver.ai/caching.md): Reuse element locations from passing runs to skip the AI when the screen is unchanged. - [Prevent regressions](https://docs.testdriver.ai/copilot/auto-healing.md): Catch regressions before they merge, and fix tests when your app changes. - [Set up a project](https://docs.testdriver.ai/quickstart-manual.md): Add TestDriver to your own project and run your first Vitest test. - [Client & connection](https://docs.testdriver.ai/client.md): Create a TestDriver client, connect it to a sandbox, and disconnect when you're done. - [Options](https://docs.testdriver.ai/options.md): Every option you can pass to a TestDriver client, with its default. - [Launch apps in the sandbox](https://docs.testdriver.ai/provision.md): Start Chrome, a Chrome extension, VS Code, an Electron app, or an installer in the sandbox. - [Locate elements](https://docs.testdriver.ai/locating-elements.md): Find elements on screen by describing them in plain language, and make the match reliable. - [assert()](https://docs.testdriver.ai/assert.md): Check a plain-language statement about the screen, and fail the test if it's false. - [captcha()](https://docs.testdriver.ai/captcha.md): Solve a reCAPTCHA, hCaptcha, or Cloudflare Turnstile on the page with the 2captcha service. - [click()](https://docs.testdriver.ai/click.md): Click an element you found, or click a point on the screen. - [doubleClick()](https://docs.testdriver.ai/double-click.md): Double-click an element you found, for example to open a file or select a word. - [exec()](https://docs.testdriver.ai/exec.md): Run a shell or PowerShell command in the sandbox and get its output. - [extract()](https://docs.testdriver.ai/extract.md): Read a value off the screen with AI and get it back as a string. - [find()](https://docs.testdriver.ai/find.md): Locate an element on screen by describing it in plain language. - [focusApplication()](https://docs.testdriver.ai/focus-application.md): Bring an open application window to the front of the sandbox desktop. - [hover()](https://docs.testdriver.ai/hover.md): Move the mouse over an element or a point without clicking, to reveal tooltips and menus. - [mouseDown()](https://docs.testdriver.ai/mouse-down.md): Press and hold the left mouse button on an element, to start a drag. - [mouseUp()](https://docs.testdriver.ai/mouse-up.md): Release the left mouse button on an element, to finish a drag. - [parse()](https://docs.testdriver.ai/parse.md): List every UI element on screen, with its type, text, and position. - [pressKeys()](https://docs.testdriver.ai/press-keys.md): Press a key or a keyboard shortcut, like Enter, Tab or Ctrl+A. - [rightClick()](https://docs.testdriver.ai/right-click.md): Right-click an element you found, usually to open a context menu. - [screenshot()](https://docs.testdriver.ai/screenshot.md): Save a screenshot of the sandbox screen to a PNG file in your project. - [scroll()](https://docs.testdriver.ai/scroll.md): Scroll the page up or down with the mouse wheel. - [type()](https://docs.testdriver.ai/type.md): Type text into the field that has keyboard focus, with optional masking for secrets. - [wait()](https://docs.testdriver.ai/wait.md): Pause the test for a fixed number of milliseconds. - [Wait for the screen to settle](https://docs.testdriver.ai/redraw.md): Make actions wait until the screen stops changing before the next step runs. - [Save screenshots](https://docs.testdriver.ai/screenshots.md): Save screenshots of the sandbox by hand or automatically around each command. - [Errors](https://docs.testdriver.ai/errors.md): The errors TestDriver throws, what they contain, and how to catch them. - [Events](https://docs.testdriver.ai/events.md): Listen to what TestDriver does during a test through its event emitter. - [Record tests with Dashcam](https://docs.testdriver.ai/dashcam.md): Every test is recorded as a video replay with logs, linked when the test ends. - [Test result JSON](https://docs.testdriver.ai/test-results-json.md): Read each test's result, replay link, and run details from a JSON file. - [Make assertions](https://docs.testdriver.ai/making-assertions.md): Check that your app reached the right state, in plain language or with expect(). - [Run tests in CI/CD](https://docs.testdriver.ai/ci-cd.md): Run TestDriver tests on every push and pull request in GitHub Actions or any CI provider. - [Hosted plans](https://docs.testdriver.ai/hosted.md): Run tests on TestDriver's cloud sandboxes, billed by testing minutes, with no infrastructure to manage. - [Self-hosted (Enterprise)](https://docs.testdriver.ai/self-hosted.md): Run TestDriver sandboxes on your own infrastructure for a flat license fee instead of testing minutes. - [Self-host on AWS](https://docs.testdriver.ai/aws-setup.md): Run each test on a fresh Windows EC2 instance in your AWS account, set up with CloudFormation. - [Run tests on your own machine](https://docs.testdriver.ai/bring-your-own-machine.md): Run the TestDriver runner on a laptop, desktop, or VM you control, and point your tests at it. - [Use variables and test data](https://docs.testdriver.ai/variables.md): Drive tests with environment variables, shared fixtures, and generated data. - [Use secrets](https://docs.testdriver.ai/secrets.md): Keep passwords and tokens out of your test code and TestDriver's logs. - [Reuse code across tests](https://docs.testdriver.ai/reusable-code.md): Share login steps and other common flows between tests with helpers and page objects. - [Configure the cache](https://docs.testdriver.ai/cache.md): Every option that controls how find() and assert() reuse cached results. - [Customize the sandbox](https://docs.testdriver.ai/customizing-devices.md): Choose the sandbox OS and resolution, preview mode, recording, and how long it stays alive. - [Wait for elements](https://docs.testdriver.ai/guide/best-practices-polling.md): Wait for elements with find() and a timeout instead of fixed wait() delays. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.