Playwright
The default pick for end-to-end browser testing now. Fast, handles multiple browsers, and its trace viewer makes debugging a flaky test much less painful.
What is Playwright?
Playwright is a browser automation and end-to-end testing framework built by Microsoft that drives Chromium, Firefox, and WebKit from a single API. It's become the default choice for teams writing browser-level tests, largely because of how fast it runs and how much easier it makes debugging flaky tests compared to older tools. Its trace viewer records a full timeline of a test run, DOM snapshots, network calls, console logs, so you can actually see what happened instead of guessing why a test failed intermittently.
Key features
- Single API that runs tests across Chromium, Firefox, and WebKit
- Auto-waiting for elements to be actionable, cutting down on the flaky timing issues that plague older test tools
- Trace viewer that captures a full, replayable timeline of each test run for debugging
- Built-in test runner with parallelization, retries, and visual regression testing
- Codegen tool that records your interactions in a browser and generates test code from them
Who it's for
The default pick for most teams writing browser-based end-to-end tests today, whether you're testing a small side project or a large app. If you only need lightweight component or unit testing, reaching for a full browser automation tool is overkill, something like Vitest is a better fit there.
Pricing
Free and open-source, no paid tier for the core tool itself.