browser-automation / library
Playwright
Capability: playwright
Use it when
- browser automation click fill forms
- JS rendered SPA automation
- wait for selector multi-step flows
- agent driving chromium headless
- logged-in browser sessions for scrapes that need cookies
- client-rendered pages where static fetch misses app content
What it solves
Not the fit when
- bot-detection-challenge without stealth extras
Install
pip install playwright && playwright install chromium
Invoke
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(headless=True)
page = browser.new_page()
page.goto(url, wait_until='networkidle')
page.wait_for_selector('.result')
html = page.content()Alternatives
playwright-python, playwright-mcp, mcp-playwright, patchright, stagehand, browser-use, open-codex-computer-use, browserless