A pytest wrapper with fixtures for Playwright to automate web browsers
Project Links
Meta
Author: Microsoft
Requires Python: >=3.10
Classifiers
Programming Language
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
License
- OSI Approved :: Apache Software License
Operating System
- OS Independent
Framework
- Pytest
Pytest plugin for Playwright 
Write end-to-end tests for your web apps with Playwright and pytest.
- 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.
Documentation
See on playwright.dev for examples and more detailed information.
0.7.2
Nov 24, 2025
0.7.1
Sep 08, 2025
0.7.0
Jan 31, 2025
0.6.2
Nov 26, 2024
0.6.1
Nov 25, 2024
0.6.0
Nov 25, 2024
0.5.2
Sep 06, 2024
0.5.1
Jul 03, 2024
0.5.0
May 06, 2024
0.4.4
Feb 02, 2024
0.4.3
Oct 09, 2023
0.4.2
Aug 07, 2023
0.4.1
Aug 07, 2023
0.4.0
Aug 07, 2023
0.3.3
Apr 24, 2023
0.3.2
Mar 10, 2023
0.3.1
Feb 28, 2023
0.3.0
Mar 16, 2022
0.2.3
Feb 10, 2022
0.2.2
Oct 28, 2021
0.2.1
Oct 11, 2021
0.2.0
Aug 16, 2021
0.1.2
Jun 07, 2021
0.1.1
May 19, 2021
0.1.0
Apr 01, 2021
0.0.12
Feb 25, 2021
0.0.11
Jan 21, 2021
0.0.10
Dec 16, 2020
0.0.9
Nov 24, 2020
0.0.8
Nov 10, 2020
0.0.7
Oct 03, 2020
0.0.6
Sep 29, 2020
0.0.5
Aug 05, 2020
0.0.4.1
Jul 31, 2020
0.0.4
Jul 13, 2020
0.0.3
Jul 13, 2020
0.0.2
Jul 13, 2020
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
playwright
(>=1.18)
pytest
(<10.0.0,>=6.2.4)
pytest-base-url
(<3.0.0,>=1.0.0)
python-slugify
(<9.0.0,>=6.0.0)