Skip to content

Instantly share code, notes, and snippets.

@svirmi
Last active February 4, 2026 12:24
Show Gist options
  • Select an option

  • Save svirmi/512795621c11e3d54faadec93bc2fe84 to your computer and use it in GitHub Desktop.

Select an option

Save svirmi/512795621c11e3d54faadec93bc2fe84 to your computer and use it in GitHub Desktop.
Playwrite browser test
from playwright.sync_api import sync_playwright
import time
with sync_playwright() as p:
browser = p.chromium.launch(headless=False, slow_mo=2000)
page = browser.new_page()
page.goto("https://browser-compat.turnstile.workers.dev/")
time.sleep(6.5)
page.screenshot(path="example.png")
print(page.title())
browser.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment