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
screenshot-saas-wide.py · 486 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": 2560, "height": 1440}) |
| 7 | page.goto('file:///Users/danq/dbbasic-web-native/demo-saas-landing.html') |
| 8 | page.wait_for_timeout(1500) |
| 9 | |
| 10 | page.screenshot(path='demo-saas-landing-wide-screenshot.png', full_page=True) |
| 11 | browser.close() |
| 12 | print("Screenshot saved to demo-saas-landing-wide-screenshot.png") |