Skip to main content

🎭 Playwright for Python PyPI version Anaconda version Join Discord

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 128.0.6613.18
WebKit 18.0
Firefox 128.0

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

Release files for playwright 1.46.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for playwright 1.46.0
File
playwright-1.46.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
playwright-1.46.0-py3-none-win32.whl Python 3 none Windows x86-32 Details
playwright-1.46.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
playwright-1.46.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details
playwright-1.46.0-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details
playwright-1.46.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
playwright-1.46.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details

Total release size: 238.0 MB

Release files / playwright-1.46.0-py3-none-win_amd64.whl

Download URL playwright-1.46.0-py3-none-win_amd64.whl
Size 29.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f14a7fd7e24e954eec6ce61d787d499e41937ade811a0818e9a088aabe28ebb6
BLAKE2b-256 checksum
How to use checksums
ba27b5f21695ee2ea32fdf826e531066e5633e1056171e217bac3daeefa46017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.46.0-py3-none-win32.whl

Download URL playwright-1.46.0-py3-none-win32.whl
Size 29.8 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
85f44dd32a23d02850f0ff4dafe51580e5199531fff5121a62489d9838707782
BLAKE2b-256 checksum
How to use checksums
55cc3de814e8e7540d9c6d1b131c5e4457d5a3a56880b3a20235cfe94bbdfef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.46.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL playwright-1.46.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 37.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
23580f6a3f99757bb9779d29be37144cb9328cd9bafa178e6db5b3ab4b7faf4c
BLAKE2b-256 checksum
How to use checksums
1fac4df6b6c12bbfbcfd2d2f1c59645ff99732852e920027b877c7c775341ca0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.46.0-py3-none-manylinux1_x86_64.whl

Download URL playwright-1.46.0-py3-none-manylinux1_x86_64.whl
Size 37.9 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3b418509f45879f1403d070858657a39bd0b333b23d92c37355682b671726df9
BLAKE2b-256 checksum
How to use checksums
754f0a410deb48a0ff93107884a6cf06bbdbc97571f41b49e06cf7673c192264
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.46.0-py3-none-macosx_11_0_universal2.whl

Download URL playwright-1.46.0-py3-none-macosx_11_0_universal2.whl
Size 34.8 MB
Tags Python 3 macOS 11.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
f5acfec1dbdc84d02dc696a17a344227e66c91413eab2036428dab405f195b82
BLAKE2b-256 checksum
How to use checksums
9fc98d0381489d082f86246579a4d51b20ccd6b5b6e570e809fd103b63d1b9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.46.0-py3-none-macosx_11_0_arm64.whl

Download URL playwright-1.46.0-py3-none-macosx_11_0_arm64.whl
Size 33.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
73dcfc24834f4d004bc862ed0d74b4c1406793a8164734238ad035356fddc8ac
BLAKE2b-256 checksum
How to use checksums
98d250db19ce9b25c2033a6836b5a4eacb7f4be1adff63cfb4c58b46a9eb04ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.46.0-py3-none-macosx_10_13_x86_64.whl

Download URL playwright-1.46.0-py3-none-macosx_10_13_x86_64.whl
Size 34.8 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
fa60b95c16f6ce954636229a6c9dd885485326bca52d5ba20d02c0bc731a2bbb
BLAKE2b-256 checksum
How to use checksums
898fcf024e7cd4f1f365fea772b7fdde21e421fcd5c0c206bc7cb1c4866cdfbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release history Release notifications | RSS feed

1.63.0

8 release files

1.62.0

8 release files

1.61.0

8 release files

1.60.0

8 release files

1.59.0

8 release files

1.58.0

8 release files

1.56.0

8 release files

1.55.0

8 release files

1.54.0

8 release files

1.53.0

8 release files

1.52.0

8 release files

1.51.0

7 release files

1.49.1

7 release files

1.49.0

7 release files

1.48.0

7 release files

1.47.0

7 release files

This release

1.46.0 This release

7 release files

1.45.1

7 release files

1.44.0

7 release files

1.41.1

7 release files

1.41.0

7 release files

1.40.0

7 release files

1.39.0

7 release files

1.38.0

7 release files

1.37.0

7 release files

1.36.0

7 release files

1.35.0

7 release files

1.34.0

7 release files

1.32.1

7 release files

1.32.0

7 release files

1.31.1

7 release files

1.31.0

7 release files

1.30.0

7 release files

1.29.0

7 release files

1.28.0

7 release files

1.27.1

7 release files

1.26.1

7 release files

1.26.0

7 release files

1.25.2

7 release files

1.25.1

7 release files

1.25.0

7 release files

1.24.0

7 release files

1.23.1

7 release files

1.23.0

7 release files

1.22.0

7 release files

1.21.0

7 release files

1.20.1

7 release files

1.20.0

7 release files

1.19.1

7 release files

1.19.0

7 release files

1.18.1

7 release files

1.18.0

7 release files

1.17.1

7 release files

1.17.0

7 release files

1.16.1

5 release files

1.16.0

5 release files

1.15.1

5 release files

1.15.0

5 release files

1.14.1

5 release files

1.14.0

5 release files

1.13.1

5 release files

1.13.0

5 release files

1.12.1

5 release files

1.11.2

5 release files

1.11.1

5 release files

1.11.0

5 release files

1.10.0

5 release files

1.9.2

5 release files

1.9.1

5 release files

1.9.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page