Skip to content

Clio SDK

Monitor your Playwright tests with automatic video and trace uploads

The Clio SDK automatically captures and uploads videos and traces from your Playwright automation tests. Just add a few lines of code and your test recordings will be uploaded to your Clio dashboard.

Drop-in Integration

Initialize ClioMonitor and call start_run() on your Playwright context. Everything else happens automatically.

Automatic Upload

Video recordings and traces are automatically uploaded when your context closes.

Secure by Default

API keys and sensitive data are automatically masked in logs and error messages.

Thread Safe

Safely monitor multiple Playwright contexts simultaneously.

from clio import ClioMonitor
from playwright.async_api import async_playwright
monitor = ClioMonitor(api_key="your_api_key")
async with async_playwright() as p:
browser = await p.chromium.launch()
context = await browser.new_context(record_video_dir="./videos")
await monitor.start_run(context, "Login Test")
page = await context.new_page()
# ... your test code ...
await context.close() # Upload happens automatically

API Reference

Complete documentation for all methods. View docs →