# Playwright

> Fast and reliable end-to-end testing for modern web apps

Source: https://talira.ai/catalog/playwright-r7fvkefh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [documents / pdf / generation](https://talira.ai/categories/documents/pdf/generation), [developer tools / browser automation](https://talira.ai/categories/developer-tools/browser-automation), [developer tools / testing](https://talira.ai/categories/developer-tools/testing)
- Platforms: linux, macos, windows, docker[^2][^3]
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- MCP server: yes[^2]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^2]
- Backed by: [Microsoft](https://talira.ai/orgs/microsoft.md)
- Funding: public company (NASDAQ:MSFT)[^4]

Playwright is Microsoft's browser automation and end-to-end testing framework for Chromium, Firefox and WebKit, with APIs for Node.js/[TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md), Python, Java and [.NET](https://talira.ai/catalog/net-9p8d54vj.md). Its page.pdf() method renders a page to PDF using print CSS media, with options for paper format, margins, header and footer templates, tagged (accessible) PDFs and an embedded outline. PDF generation works only in headless Chromium: the call throws 'PDF generation is only supported for Headless Chromium' in Firefox and WebKit. That makes it a common way to print HTML to PDF from Python, Java or C# as well as Node.

## Links

- Website: https://playwright.dev
- GitHub: https://github.com/microsoft/playwright
- Docs: https://playwright.dev/docs/api/class-page#page-pdf

## Problems it solves

- I need Chrome-quality HTML to PDF from a Python backend, not Node
- print a page to PDF from a .NET or Java service using a real browser engine
- we already run browser tests in CI and want to reuse that setup to export report PDFs
- make an accessible tagged PDF with bookmarks from an HTML page
- render a templated HTML page in headless Chromium and save it as A4 with custom margins
- add a header and footer with the page number and total pages to a PDF printed from HTML
- generate PDFs of pages that need JavaScript to finish rendering before printing
- export the 'screen' version of a page to PDF instead of the print stylesheet
- one browser automation API for screenshots, PDFs and end-to-end tests across languages
- my PDF export works locally but I need it to run in a container on Linux

## Features

- page.pdf() in headless Chromium
- paper formats, width/height and margins with units
- header and footer templates with pageNumber and totalPages
- tagged (accessible) PDF option
- document outline option
- emulateMedia to print with screen CSS
- Chromium, Firefox and WebKit automation
- bindings for Node.js, Python, Java and .NET
- Playwright MCP server and CLI for coding agents

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.90 out of 1.
Signals: maintenance 1.00, adoption 1.00, momentum 0.93, community 1.00, backing 0.75, extensibility 0.40.

- last commit 9 days ago
- 776 commits in the last 90 days
- latest release v1.65.1 10 days ago
- 100.2k GitHub stars
- 830 contributors
- backed by Microsoft
- funding: public company (NASDAQ:MSFT)
- used by VS Code, Bing, Outlook, Disney+ Hotstar
- has an MCP server for agents

## Related

- Works with [Playwright MCP](https://talira.ai/catalog/playwright-mcp-a299xk2f.md)

## Alternatives

- [WeasyPrint](https://talira.ai/catalog/weasyprint-c7dnxd3b.md): Renders HTML and CSS to PDF, from Python or the command line
- [DocRaptor](https://talira.ai/catalog/docraptor-qrzzachz.md): The World's Most Advanced HTML to PDF API
- [Cypress](https://talira.ai/catalog/cypress-93d46axc.md): AI writes the code. Cypress proves it works.
- [Puppeteer](https://talira.ai/catalog/puppeteer-vbv4zakx.md): JavaScript API for Chrome and Firefox
- [PDFShift](https://talira.ai/catalog/pdfshift-4gxpxvwn.md): From HTML to pixel-perfect PDFs in seconds
- [Gotenberg](https://talira.ai/catalog/gotenberg-pxa4k262.md): A Docker-based API for PDF

## Sources

[^1]: https://github.com/microsoft/playwright/blob/main/LICENSE (checked 17 Nov 2026)
[^2]: https://github.com/microsoft/playwright (checked 17 Nov 2026)
[^3]: https://playwright.dev/docs/docker (checked 17 Nov 2026)
[^4]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
