Control network traffic
Mock APIs, block noisy requests, intercept calls, and wait for real requests or responses.
Playwright-style ergonomics. WebDriver standards. AI friendly.
npm install craftdriver --save-devimport { Browser } from 'craftdriver';
const browser = await Browser.launch({ browserName: 'chrome' });
await browser.navigateTo('https://example.com/login');
await browser.getByLabel('Username').fill('alice');
await browser.getByLabel('Password').fill('hunter2');
await browser.getByRole('button', { name: 'Sign in' }).click();
await browser.expect('#result').toHaveText('Welcome alice');
await browser.quit();| You want to... | Start |
|---|---|
| Write browser automation | Getting Started |
| Give an AI coding agent a browser | AI Agent Guide |