Last active
February 4, 2026 12:24
-
-
Save svirmi/512795621c11e3d54faadec93bc2fe84 to your computer and use it in GitHub Desktop.
Playwrite browser test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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