# Playwright

137 Hacker News commenters recommended Playwright and 28 criticized it, November 2025 to November 2026. It was recommended in 12 of 13 months; owners who said how long report a median of 0.25 years (3 owners). It meets the Hacker Approved badge rule.

**Verdict:** A fast, easy-to-set-up browser automation and testing tool with auto-waiting and screenshots, widely used to let AI coding agents check their UI work; tests can still be brittle.

## Why people recommend it

- Lets AI agents verify UI (12 comments): "Same playwright is phenomenal. You can also have the agent browse with MCP to figure out the workflow, then bang out a repeatable playwright script for it." ([source](https://news.ycombinator.com/item?id=47791625)) "Playwright seems to do fine at visual stuff? It takes screenshots and the model evaluates them. That's most of what I use Playwright for." ([source](https://news.ycombinator.com/item?id=47507401)) "Getting them to take screenshots with playwright/puppeteer and look at them as part of their development iteration cycle works well." ([source](https://news.ycombinator.com/item?id=47333134))
- Auto-waiting and clean API (5 comments): "playwright provides a lot of benefits that we like in terms of being code - like auto-waiting, good syntax for a lot of operations" ([source](https://news.ycombinator.com/item?id=48446417)) "Playwright's screenshot comparison (toHaveScreenshot) combined with proper wait strategies has gotten pretty solid." ([source](https://news.ycombinator.com/item?id=46792828)) "Things that have helped me elsewhere: Playwright with page.wait_for_selector rather than networkidle" ([source](https://news.ycombinator.com/item?id=47931810))
- Screenshots, traces and visual comparison (4 comments): "Playwright seems to do fine at visual stuff? It takes screenshots and the model evaluates them. That's most of what I use Playwright for." ([source](https://news.ycombinator.com/item?id=47507401)) "Getting them to take screenshots with playwright/puppeteer and look at them as part of their development iteration cycle works well." ([source](https://news.ycombinator.com/item?id=47333134)) "Playwright's screenshot comparison (toHaveScreenshot) combined with proper wait strategies has gotten pretty solid." ([source](https://news.ycombinator.com/item?id=46792828))
- Fast and easy setup (6 comments): "Playwright really simplifies getting setup. It won't work for everyone, but within 30 seconds Playwright will download it's needed browsers along with a test runner." ([source](https://news.ycombinator.com/item?id=46378927)) "playwright got a lot of things right. one of the big ones was a fast websockets+json way to drive the browser" ([source](https://news.ycombinator.com/item?id=46378769)) "Building simple web-scraping scripts with nbb driving Playwright is so much faster than using any other stack" ([source](https://news.ycombinator.com/item?id=49090395))

## What people warn about

- Tests brittle and finicky (4 comments): "that kind of test tends to be brittle and annoying to write (I guess I don't have to write them anymore, but they are still brittle)" ([source](https://news.ycombinator.com/item?id=49147573)) "Tools like Selenium and Playwright have introduced explicit waits, which observe the DOM. This helps, but doesn't solve everything." ([source](https://news.ycombinator.com/item?id=46738402)) "getting them to a state where they reliably pass has always been so much more finicky than it should be" ([source](https://news.ycombinator.com/item?id=47617616))
- Inefficient, floods agent context (4 comments): "I've had some luck on the web app side if I use playwright or similar for the model to interact with but still far from efficient." ([source](https://news.ycombinator.com/item?id=49444083)) "My main issue with Playwright (and chrome-devtools) is that they pollute the context with a massive amount of stuff." ([source](https://news.ycombinator.com/item?id=46867886)) "duct-taping browser automation (Playwright, CDP, MCP wrappers) onto an interface designed for humans" ([source](https://news.ycombinator.com/item?id=47392756))
- Detected by anti-bot defenses (2 comments): "Rolling your own Playwright / Puppeteer cluster works until target sites deploy new JA4/TLS fingerprints" ([source](https://news.ycombinator.com/item?id=49928677)) "the project that my CC is working on now is a playwright clone that is not easily detectable" ([source](https://news.ycombinator.com/item?id=47500933))

## Alternatives hackers recommend

- [Playwright CLI](https://hackerapproved.com/p/playwright-cli.md): 19 recommend
- [Selenium](https://hackerapproved.com/p/selenium.md): 15 recommend
- [Puppeteer](https://hackerapproved.com/p/puppeteer.md): 14 recommend
- [Stagehand](https://hackerapproved.com/p/stagehand.md): 13 recommend
- [Vibium](https://hackerapproved.com/p/vibium.md): 12 recommend

## Cite as

Hacker Approved, "Playwright", https://hackerapproved.com/p/playwright/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
