Test Tools · UI / E2E Automation

Playwright

Microsoft's modern browser automation library. Multi-browser, fast, and reliable — the modern industry default for new web projects.

Overview

Playwright is an open-source browser automation framework developed by Microsoft, first released in 2020. It supports Chromium, Firefox, and WebKit with a single API. Unlike Selenium, Playwright uses native browser protocols (CDP for Chromium, Playwright protocols for Firefox/WebKit) rather than the older WebDriver standard, enabling faster and more reliable execution.

In 2026, Playwright dominates new project adoption in NZ tech teams. Xero, Trade Me, and Datacom job postings frequently list Playwright as a preferred or required skill. The framework is particularly strong for modern SPAs (React, Vue, Angular) where automatic waiting and network interception eliminate the flakiness common in older tools.

What it's used for

Playwright excels at:

  • Cross-browser regression testing: Run the same test against Chrome, Firefox, Safari, and Edge with one codebase.
  • CI/CD integration: Native sharding, parallel execution, and HTML/JSON/JUnit reporters make pipeline integration trivial.
  • API + UI combined testing: Intercept network requests, mock APIs, and validate both frontend and backend behaviour in a single test.
  • Visual regression: Built-in screenshot comparison with configurable thresholds.
  • Mobile web simulation: Test responsive layouts by emulating viewport sizes and device pixel ratios.

Pros & Cons

Pros

  • Auto-waiting eliminates most flaky tests without explicit sleeps
  • Multi-browser support (Chromium, Firefox, WebKit) from one API
  • Native parallel execution and test sharding for CI
  • Excellent trace viewer for debugging failures
  • Strong TypeScript support and VS Code extension

Cons

  • Node.js ecosystem only — no native Java or C# bindings as mature as Selenium
  • Not suitable for native mobile apps (use Appium instead)
  • Smaller community than Selenium for legacy enterprise support
  • Steep learning curve for teams migrating from Selenium WebDriver

Platforms & Integrations

Playwright runs on Windows, macOS, and Linux. It supports testing against Chromium, Firefox, and WebKit on all three platforms.

Windows macOS Linux Chromium Firefox WebKit Node.js Python Java .NET TypeScript GitHub Actions GitLab CI Jenkins Azure DevOps

Pricing

TierCostIncludes
Open SourceFreeFull framework, all browsers, all features
Playwright CloudFrom $0.005/testManaged execution, trace storage, team dashboards

NZ Context

NZ tech employers overwhelmingly prefer Playwright for greenfield projects. Trade Me Engineering blog mentions Playwright as their primary E2E tool. The Playwright documentation quality makes it accessible for junior engineers. NZ-based consulting firms like Flux Federation and Vend (now part of Lightspeed) have publicly shared Playwright success stories. For NZ government work, Playwright is approved for use on classified systems when paired with internal CI infrastructure.

Alternatives

  • Selenium — The established standard. Better for legacy systems and multi-language enterprise teams.
  • Cypress — Developer-friendly with time-travel debugging. Best for frontend-centric JavaScript teams.
  • TestCafe — No WebDriver needed. Simpler setup for teams wanting quick wins without browser binaries.

Learn more