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
demo-app-full-screenshot.py · 465 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": 1920, "height": 1200}) |
| 7 | page.goto('file:///Users/danq/dbbasic-web-native/demo-app-full.html') |
| 8 | page.wait_for_timeout(1500) |
| 9 | |
| 10 | page.screenshot(path='demo-app-full-screenshot.png', full_page=False) |
| 11 | browser.close() |
| 12 | print("Screenshot saved to demo-app-full-screenshot.png") |