Skip to main content
copilotbrowser

Command your browsers.

Your AI-powered browser automation platform. Automate Chromium, Firefox, and WebKit with a single API — from testing to scraping to intelligent agents.

npm install copilotbrowser

Automate, debug, and ship — at every scale.

AI-ready browser automation that works where you do.

Test with confidence, not complexity.

copilotbrowser's built-in test runner handles parallel execution, smart retries, fixtures, and assertions out of the box. Auto-waiting means no more arbitrary sleeps — your tests stay green because they actually wait for the right moment.

test('login works', async ({ page }) => {
  await page.goto('/login');
  await page.getByLabel('Email').fill('user@example.com');
  await page.getByRole('button', { name: 'Sign in' }).click();
  await expect(page).toHaveURL('/dashboard');
});

Debug faster with traces and time travel.

Every test run captures a rich execution trace — DOM snapshots, network requests, console logs, and action timelines. Open the Trace Viewer to replay exactly what happened, step by step, without re-running anything.

// Capture a trace for every failed test
use: {
  trace: 'on-first-retry',
  screenshot: 'only-on-failure',
  video: 'retain-on-failure',
}

Deploy everywhere. Integrate with anything.

From your local machine to Azure Pipelines, GitHub Actions, Docker containers, and Copilot Studio MCP servers — copilotbrowser works wherever you need it. Pre-built images. CI templates. MCP tool server mode for AI agents.

# Pull the ready-to-go Docker image
docker pull mcr.microsoft.com/copilotbrowser:latest

# Or run as an MCP tool server
npx copilotbrowser mcp-server

Your Language, Your Way

First-class support for all major languages.

Up and Running in 60 Seconds

1

Install

npm init copilotbrowser@latest
2

Write a Test

await page.goto('https://example.com');
3

Run

npx copilotbrowser test
4

View Report

npx copilotbrowser show-report

Take your automation further.

From unit tests to full end-to-end suites, AI agents to enterprise CI/CD pipelines — copilotbrowser is the browser automation platform built for every workflow.