playwright-async-2026

Installation
SKILL.md

Playwright Async Python — 2026 Patterns

Version (2026)

Latest stable: playwright==1.58.0
Requires: Python >= 3.9 (use 3.12 for new projects)

uv add playwright
python -m playwright install firefox  # or: python -m camoufox fetch (if using Camoufox)

Core Rule: Always Async in 2026

# ✅ 2026 standard — async_api
from playwright.async_api import async_playwright, Page, BrowserContext

# ❌ Stale — sync_api (blocks FastAPI event loop, single-threaded)
from playwright.sync_api import sync_playwright
Related skills
Installs
12
First Seen
Feb 27, 2026