# pytest-playwright

> A pytest wrapper with fixtures for Playwright to automate web browsers

- **URL**: https://www.freshcrate.ai/projects/pytest-playwright
- **Author**: Microsoft
- **Category**: Frameworks
- **Latest version**: `v0.8.0` (2026-05-18)
- **License**: non-standard
- **Source**: https://github.com/microsoft/playwright-pytest
- **Homepage**: https://pypi.org/project/pytest-playwright/
- **Language**: Python
- **GitHub**: 543 stars, 85 forks
- **Registry**: pypi (`pytest-playwright`)
- **Tags**: `pypi`

## Description

# Pytest plugin for Playwright [![PyPI](https://img.shields.io/pypi/v/pytest-playwright)](https://pypi.org/project/pytest-playwright/)

Write end-to-end tests for your web apps with [Playwright](https://github.com/microsoft/playwright-python) and [pytest](https://docs.pytest.org/en/stable/).

- Support for **all modern browsers** including Chromium, WebKit and Firefox.
- Support for **headless and headed** execution.
- **Built-in fixtures** that provide browser primitives to test functions.

**Note**: If you are looking for an asyncio version of this plugin, check out [pytest-playwright-asyncio](https://pypi.org/project/pytest-playwright-asyncio/).

## Documentation

See on [playwright.dev](https://playwright.dev/python/docs/test-runners) for examples and more detailed information.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v0.8.0` | 2026-05-18 | High | Adds support for [`expect.soft()`](https://playwright.dev/python/docs/test-assertions#soft-assertions) soft assertions. |
| `0.7.2` | 2026-04-21 | Low | Imported from PyPI (0.7.2) |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |
| `v0.7.2` | 2025-11-20 | Low | ## What's Changed * chore(deps): bump django from 4.2.22 to 4.2.24 by @dependabot[bot] in https://github.com/microsoft/playwright-pytest/pull/292 * chore: drop Python 3.9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/299 * chore: support Pytest v9 by @mxschmitt in https://github.com/microsoft/playwright-pytest/pull/300 * fix: check common name for incompatible plugin by @JamesYFC in https://github.com/microsoft/playwright-pytest/pull/294  ## New Contributors * @Jame |

## Citation

- HTML: https://www.freshcrate.ai/projects/pytest-playwright
- Markdown: https://www.freshcrate.ai/projects/pytest-playwright.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/pytest-playwright/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
