Skip to content

Playwright

Microsoft's modern browser automation library, the reliable base for driving a real browser.

Playwright drives Chromium, Firefox, and WebKit through one API, with auto-waiting that removes most of the flakiness older tools were known for. It was built for testing but has become the default way to give software control of a browser.

For AI work it is the layer underneath: when an agent must use a site that has no API, Playwright is what actually clicks, types, and reads the page.

Where it fits

The dependable foundation whenever code (or an agent) has to operate a real browser, especially for sites with no API.

Where it does not fit

On its own it is mechanical, not intelligent: it executes precise instructions and does not decide what to do. That layer sits above it.

Alternatives to Playwright

The closest options on the map, and where each fits instead.

How it compares

  • Where Puppeteer does not fit

    Narrower than Playwright on cross-browser support and auto-waiting: usually not the pick for a greenfield project.

Pairs with

Commonly used alongside it.