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-input-forms-screenshot.py · 473 bytes · 12 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": 4500}) |
| 7 | page.goto('file:///Users/danq/dbbasic-web-native/test-input-forms.html') |
| 8 | page.wait_for_timeout(1500) |
| 9 | |
| 10 | page.screenshot(path='test-input-forms-screenshot.png', full_page=True) |
| 11 | browser.close() |
| 12 | print("Screenshot saved to test-input-forms-screenshot.png") |