askrobots / dbbasic-web-native
Public
100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.
danq9
Add canonical.html v1.0 - The single source of truth for usability standards
fb6e650
1 year ago
History
test-progress-screenshot.py · 504 bytes · 11 lines
| 1 | from playwright.sync_api import sync_playwright |
| 2 | |
| 3 | with sync_playwright() as p: |
| 4 | browser = p.chromium.launch() |
| 5 | page = browser.new_page() |
| 6 | page.set_viewport_size({"width": 1280, "height": 2400}) |
| 7 | page.goto('file:///Users/danq/dbbasic-web-native/test-progress.html') |
| 8 | page.wait_for_timeout(1500) # Wait a bit for spinners to be visible |
| 9 | page.screenshot(path='test-progress-screenshot.png', full_page=True) |
| 10 | browser.close() |
| 11 | print("Screenshot saved to test-progress-screenshot.png") |