pytest-playwright-asyncio
A pytest wrapper with async fixtures for Playwright to automate web browsers
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive Apache 2.0 license. It directly solves the problem of writing async browser tests with pytest if you're already using Playwright. Install it if you need end-to-end testing for web applications.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Playwright browser binaries must be installed separately (typically via `playwright install` after installing the playwright package).
- Low friction install with a wheel distribution.
License · maintenance · safety
permissive license (permissive) — Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects provided you include license attribution and note any changes you make.
last release 2026-08-10 (4 days) · last repo commit 2026-08-11 · 556 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 185,646 downloads/mo, #10,006 on PyPI
Alternatives
Verify before relying
pip install pytest-playwright-asyncio
# In your test file:
import pytest
from pytest_playwright_asyncio import browser
@pytest.mark.asyncio
async def test_homepage(browser):
await browser.goto('https://example.com')
assert await browser.title() == 'Example Domain'- Whether the package provides fixtures for specific browser contexts or just the base browser object
- Support for parallel test execution and any concurrency limitations
- Whether base_url fixture from pytest-base-url is automatically integrated or requires manual setup
What it is and what it does
pytest-playwright-asyncio bridges Playwright's browser automation library with pytest's testing framework, enabling you to write async/await-style end-to-end tests. It provides built-in pytest fixtures that inject browser primitives directly into your test functions, eliminating boilerplate setup code. The plugin supports all modern browsers (Chromium, WebKit, Firefox) in both headless and headed modes.
You install it alongside pytest, playwright, pytest-asyncio, and pytest-base-url. Once installed, your test functions can use async/await syntax to control browsers, navigate pages, and assert on page state. The plugin handles fixture lifecycle management, so you focus on writing test logic rather than browser initialization and teardown.
Use it for
- Test user workflows across multiple browsers to catch rendering or behavior differences before production
- Verify form submission, navigation, and dynamic content loading in single-page applications
- Run headless browser tests in CI/CD pipelines to validate web app functionality on every commit
- Test responsive design by running the same test suite against different viewport sizes
- Validate third-party integrations and API interactions triggered by user actions in the browser
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive Apache 2.0 license. It directly solves the problem of writing async browser tests with pytest if you're already using Playwright. Install it if you need end-to-end testing for web applications.
Install
pytest-playwright-asyncio on PyPI
Before you install
Low friction install with a wheel distribution. Actively maintained as of 2026-08-11 with recent release activity. Requires Python 3.10 or later and depends on pytest, playwright, and pytest-asyncio.
Requires Python 3.10 or later. Playwright browser binaries must be installed separately (typically via `playwright install` after installing the playwright package).
License in practice
Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects provided you include license attribution and note any changes you make.
Quickstart
pip install pytest-playwright-asyncio
# In your test file:
import pytest
from pytest_playwright_asyncio import browser
@pytest.mark.asyncio
async def test_homepage(browser):
await browser.goto('https://example.com')
assert await browser.title() == 'Example Domain'
Verify before relying
- Whether the package provides fixtures for specific browser contexts or just the base browser object
- Support for parallel test execution and any concurrency limitations
- Whether base_url fixture from pytest-base-url is automatically integrated or requires manual setup
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagespytestplaywrightpytest-base-urlpython-slugifypytest-asyncio |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 185,646 / month, #10,006 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: PytestLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13 |
Evidence: pytest_playwright_asyncio-0.9.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest playwright async fixtures”
- pytest-playwright-asyncioA pytest plugin that integrates Playwright browser automation with…
- pytest-playwrightA pytest plugin that integrates Playwright browser automation into…
- pytest-aioA pytest plugin that automatically runs async test functions and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pyppeteer · pytest-playwright · playwright · wptserve · scrapy-playwright · testmuai-playwright-bindings · stagehand · install-playwright · eyes-common · robocorp-browser