A high-level API to automate web browsers
Project Links
Meta
Author: Microsoft Corporation
Requires Python: >=3.9
Classifiers
Topic
- Software Development :: Testing
- Internet :: WWW/HTTP :: Browsers
Intended Audience
- Developers
Programming Language
- Python :: 3
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
Operating System
- OS Independent
๐ญ Playwright for Python

Playwright is a Python library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast. See how Playwright is better.
| Linux | macOS | Windows | |
|---|---|---|---|
| Chromium 145.0.7632.6 | โ | โ | โ |
| WebKit 26.0 | โ | โ | โ |
| Firefox 146.0.1 | โ | โ | โ |
Documentation
https://playwright.dev/python/docs/intro
API Reference
https://playwright.dev/python/docs/api/class-playwright
Example
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = browser_type.launch()
page = browser.new_page()
page.goto('http://playwright.dev')
page.screenshot(path=f'example-{browser_type.name}.png')
browser.close()
import asyncio
from playwright.async_api import async_playwright
async def main():
async with async_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = await browser_type.launch()
page = await browser.new_page()
await page.goto('http://playwright.dev')
await page.screenshot(path=f'example-{browser_type.name}.png')
await browser.close()
asyncio.run(main())
Other languages
More comfortable in another programming language? Playwright is also available in
1.58.0
Jan 30, 2026
1.57.0
Dec 09, 2025
1.56.0
Nov 11, 2025
1.55.0
Aug 28, 2025
1.54.0
Jul 22, 2025
1.53.0
Jun 25, 2025
1.52.0
Apr 30, 2025
1.51.0
Mar 18, 2025
1.50.0
Feb 03, 2025
1.49.1
Dec 10, 2024
1.49.0
Nov 22, 2024
1.48.0
Oct 21, 2024
1.47.0
Sep 13, 2024
1.46.0
Aug 12, 2024
1.45.1
Jul 23, 2024
1.45.0
Jul 03, 2024
1.44.0
May 17, 2024
1.43.0
Apr 09, 2024
1.42.0
Mar 06, 2024
1.41.2
Feb 06, 2024
1.41.1
Jan 24, 2024
1.41.0
Jan 17, 2024
1.40.0
Nov 21, 2023
1.39.0
Oct 17, 2023
1.38.0
Sep 18, 2023
1.37.0
Aug 14, 2023
1.36.0
Jul 14, 2023
1.35.0
Jun 13, 2023
1.34.0
May 26, 2023
1.33.0
May 03, 2023
1.32.1
Mar 29, 2023
1.32.0
Mar 27, 2023
1.31.1
Feb 27, 2023
1.31.0
Feb 21, 2023
1.30.0
Jan 25, 2023
1.29.1
Jan 04, 2023
1.29.0
Dec 21, 2022
1.28.0
Nov 16, 2022
1.27.1
Oct 12, 2022
1.27.0
Oct 07, 2022
1.26.1
Sep 28, 2022
1.26.0
Sep 20, 2022
1.25.2
Aug 23, 2022
1.25.1
Aug 16, 2022
1.25.0
Aug 15, 2022
1.24.1
Aug 01, 2022
1.24.0
Jul 22, 2022
1.23.1
Jul 14, 2022
1.23.0
Jun 30, 2022
1.22.0
May 13, 2022
1.21.0
Apr 13, 2022
1.20.1
Mar 23, 2022
1.20.0
Mar 15, 2022
1.19.1
Feb 25, 2022
1.19.0
Feb 15, 2022
1.18.2
Feb 01, 2022
1.18.1
Jan 20, 2022
1.18.0
Jan 19, 2022
1.17.2
Dec 02, 2021
1.17.1
Nov 30, 2021
1.17.0
Nov 20, 2021
1.16.1
Oct 29, 2021
1.16.0
Oct 21, 2021
1.15.3
Oct 05, 2021
1.15.2
Oct 01, 2021
1.15.1
Sep 30, 2021
1.15.0
Sep 21, 2021
1.14.1
Aug 24, 2021
1.14.0
Aug 13, 2021
1.13.1
Jul 29, 2021
1.13.0
Jul 21, 2021
1.12.1
Jun 11, 2021
1.12.0
Jun 09, 2021
1.11.2
May 20, 2021
1.11.1
May 13, 2021
1.11.0
May 10, 2021
1.10.0
Mar 24, 2021
1.9.2
Mar 10, 2021
1.9.1
Feb 26, 2021
1.9.0
Feb 24, 2021
Wheel compatibility matrix
| Platform | Python 3 |
|---|---|
| macosx_10_13_x86_64 | |
| macosx_11_0_arm64 | |
| macosx_11_0_universal2 | |
| manylinux1_x86_64 | |
| manylinux2014_aarch64 | |
| manylinux_2_17_aarch64 | |
| win32 | |
| win_amd64 | |
| win_arm64 |
Files in release
playwright-1.58.0-py3-none-macosx_10_13_x86_64.whl (40.3MiB)
playwright-1.58.0-py3-none-macosx_11_0_arm64.whl (39.1MiB)
playwright-1.58.0-py3-none-macosx_11_0_universal2.whl (40.3MiB)
playwright-1.58.0-py3-none-manylinux1_x86_64.whl (44.1MiB)
playwright-1.58.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (43.8MiB)
playwright-1.58.0-py3-none-win32.whl (35.1MiB)
playwright-1.58.0-py3-none-win_amd64.whl (35.1MiB)
playwright-1.58.0-py3-none-win_arm64.whl (31.6MiB)