Playwright
Test automation · Free
A Chromium, Firefox, and WebKit automation library with a test runner: it checks user scenarios and collects error traces.
Also known as: microsoft/playwright; playwright; web-testing-automation

What you can use for free
Code and local use under Apache-2.0.
Paid features and costs
Compute, your own hosting, and external services are paid for separately if selected.
Access and limitations
Code and local use under Apache-2.0. Compute, your own hosting, and external services are paid for separately if selected.
Use cases
- Check a user journey across browsers
- Run a scenario in the required browser engines and inspect the error trace
Example workflow
A possible workflow; this is not a report of hands-on testing.
Test a form with valid and invalid input.
Before you start
- A test application URL.
- Predictable data and a confirmation criterion.
Steps
- Find elements by accessible role and name.
- Submit the form and check visible confirmation.
- Repeat invalid input and save failure diagnostics.
Check your result
- Expectations are tied to the result rather than an arbitrary delay.
- The scenario repeats in a clean session.
Choosing Playwright
Repeat web application user workflows in browsers and obtain error diagnostics.
Choose this when
- Forms, navigation, or sign-in need checks after changes.
- A saved scenario is needed for CI.
Consider alternatives when
- Vitest is faster for testing a pure function; Playwright MCP suits exploratory navigation by an agent.
Requirements
- A test project, Playwright browsers, and controlled application data.
Things to consider
- Device emulation does not replace testing on a physical phone.
- Passing a scenario is not a complete accessibility audit.
Frequently asked questions
Why keep saved tests if an agent has navigated the website?
The test records actions and the expected result, so it can be repeated after changes and in CI.
Related tasks and approaches
- Vitest
Complement: module checks without a complete user journey.
- Playwright MCP
Alternative workflow: an agent explores the page.
License
Apache-2.0: code; third-party components retain their own terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsTechnologies and topics
- Playwright
- test
- Development