testdriverdevice-configlisted
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from device-config.mdx. DO NOT EDIT. -->
Provision methods are the starting point for most tests. They launch applications in your sandbox and prepare the environment for testing.
## Chrome Browser
The most common starting point for web testing. Launches Chrome browser and navigates to a URL.
```javascript
await testdriver.provision.chrome({
url: 'https://example.com',
});
```
### Options
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `url` | string | `'http://testdriver-sandbox.vercel.app/'` | URL to navigate to |
| `maximized` | boolean | `true` | Start browser maximized |
| `guest` | boolean | `false` | Use guest mode (no profile) |
### Example: Basic Web Test
```javascript
import { describe, expect, it } from "vitest";
import { TestDriver } from "testdriverai/vitest/hooks";
describe("Login Flow", () => {
it("should log in successfully", async (context) => {
const testdriver = TestDriver(context);
await testdriver.provision.chrome({
url: 'https://myapp.com/login',
});
await testdriver.find("Email input").click();
await testdriver.type("user@example.com");
await testdriver.find("Password input").click();
await testdriver.type("password123");
await testdriver.find("Sign In button").click();
const result = await testdriver.assert("the dashboard is visible");
expect(result).toBeTruthy();
});
});
```
<Info>
`provision.chrome()` automatically