Skip to content

CraftDriverCrafted browser automation for Node.js.

Playwright-style ergonomics. WebDriver standards. AI friendly.

CraftDriver

One Install

bash
npm install craftdriver --save-dev
ts
import { 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();

Choose Your Path

You want to...Start
Write browser automationGetting Started
Give an AI coding agent a browserAI Agent Guide

Released under the MIT License.