🎭 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 139.0.7258.5 | ✅ | ✅ | ✅ |
| WebKit 26.0 | ✅ | ✅ | ✅ |
| Firefox 140.0.2 | ✅ | ✅ | ✅ |
Documentation
https://playwright.dev/python/docs/intro
API Reference
https://playwright.dev/python/docs/api/class-playwright
Example
from playwright_firefox.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_firefox.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
Metadata
Release files for playwright-firefox 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| playwright_firefox-1.0.4-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for playwright_firefox-1.0.4-py3-none-win_amd64.whl |
| playwright_firefox-1.0.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for playwright_firefox-1.0.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| playwright_firefox-1.0.4-py3-none-manylinux1_x86_64.whl | Python 3 | none | Linux glibc 2.5+ x86-64 | Details for playwright_firefox-1.0.4-py3-none-manylinux1_x86_64.whl |
Total release size: 126.8 MB
Release files / playwright_firefox-1.0.4-py3-none-win_amd64.whl
| Download URL | playwright_firefox-1.0.4-py3-none-win_amd64.whl |
|---|---|
| Size | 35.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4d710b105ee44688ced04d82c94917eaae86d2ac8b162f3d47eb536506d1e9e7
|
|
BLAKE2b-256 checksum How to use checksums |
b40dc98e0c01900747efa6a9ce981edca5696faf6e451f3ed82f653cff26a63b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / playwright_firefox-1.0.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | playwright_firefox-1.0.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 45.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
9592abbc4226bfafb2d4e15fa8ace512a803e83e9eade213f8405a1d17c025d2
|
|
BLAKE2b-256 checksum How to use checksums |
b9ecf6d85f7315e3050197271bcbe7d0adf876fde5abf01f20974cad43aab5f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / playwright_firefox-1.0.4-py3-none-manylinux1_x86_64.whl
| Download URL | playwright_firefox-1.0.4-py3-none-manylinux1_x86_64.whl |
|---|---|
| Size | 46.0 MB |
| Tags | Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
462e0f41ae893a2974bc602adbf02f661f38b67837424af383a226b22ddf47db
|
|
BLAKE2b-256 checksum How to use checksums |
00d46c3e60332b802ab3439e94a77b8b782e7388389d18b793fe8316c19fe31b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for playwright-firefox 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.