BuildTube Preview About
Back to the feed

Playwright: Let tests, scripts or AI agents click through websites for you

Added · Updated

Have tests, scripts or an AI agent open web pages, click, type and check results in Chromium, Firefox and WebKit.

For web developers and agent builders.

What it does

Playwright drives the Chromium, Firefox and WebKit browser engines through one API. It comes in several forms: Playwright Test, a test runner for end to end testing (checking a whole website the way a user would); a library for scripts; a CLI designed for coding agents; and Playwright MCP (a way to plug tools into an AI assistant). With MCP, the agent reads the page as an accessibility tree, a structured list of buttons and fields, so it does not need screenshots or vision models to click and type.

How to use it

Input → action → output: write a test or script that says which page to open, what to click or type, and what should appear, then run it. You get pass or fail results, and on failure you can capture traces, screenshots and videos to inspect each step. With MCP, you instead ask your AI assistant to do something on a web page and it performs the clicks.

Common use cases

  • Write a test that logs into your web app and checks the dashboard loads, then run it in three browser engines in parallel.
  • Connect Playwright MCP to your AI assistant and ask it to fill out a web form; it reads the page and types into each field.
  • Write a short script that visits a list of pages and saves a screenshot or PDF of each one.

Can I use this?

Setup details on the source page

Requirements Run npm init playwright@latest for testing, npm i playwright for scripts, or add npx @playwright/mcp@latest to your MCP client. A VS Code extension supports writing and debugging tests. Licensed Apache-2.0.

Caveat Tests run in headless mode (no visible browser window) by default, so use the trace viewer or the VS Code extension to see what happened step by step.

Worth knowing Works with the Chromium, Firefox and WebKit engines. The creators say MCP loads large tool schemas and page trees into an AI's context, so their CLI uses fewer tokens.

Why it's here

  • 627 people starred it on GitHub this week — 99,576 in total.

Numbers as of 8 November 2026, from BuildTube’s latest daily refresh.

Behind it

View setup guide

BuildTube has not run or verified this project. Everything above is written from what the creator published.

Made this?

Quick questions

What is Playwright?
Playwright drives the Chromium, Firefox and WebKit browser engines through one API.
What can I use Playwright for?
Write a test that logs into your web app and checks the dashboard loads, then run it in three browser engines in parallel; Connect Playwright MCP to your AI assistant and ask it to fill out a web form; it reads the page and types into each field; Write a short script that visits a list of pages and saves a screenshot or PDF of each one
Can I run Playwright on my computer?
Playwright is a library you install with npm and run on your own computer; it drives Chromium, Firefox and WebKit browsers, and an MCP client can use it to let an AI agent do the same.
What do I need to use Playwright?
Node.js with npm to install it. Browser engines are Chromium, Firefox and WebKit. An MCP client such as VS Code, Cursor or Claude Desktop if you want an AI agent to drive it.
What license does Playwright use?
Licensed Apache-2.0.

More from this week

Explore by topic

Post this

A ready-made picture of this card for X, LinkedIn or a group chat. Link to this page alongside it.

Share image for PlaywrightDownload share image

For makers

Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.

Featured on BuildTube

README badge (Markdown)

[![Featured on BuildTube](https://buildtube.app/badge/gh-microsoft-playwright.svg)](https://buildtube.app/p/gh-microsoft-playwright/)

Embed card (HTML)

<iframe src="https://buildtube.app/embed/gh-microsoft-playwright/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="Playwright on BuildTube"></iframe>

Back to the feed