100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.

0 downloads

dbbasic-web-native/test-popover-screenshot.py
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-web-native.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-web-native.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-web-native.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add canonical.html v1.0 - The single source of truth for usability standards fb6e650 1 year ago History
test-popover-screenshot.py · 629 bytes · 17 lines
1from playwright.sync_api import sync_playwright
2
3with sync_playwright() as p:
4 browser = p.chromium.launch()
5 page = browser.new_page()
6 page.set_viewport_size({"width": 1280, "height": 2200})
7 page.goto('file:///Users/danq/dbbasic-web-native/test-popover.html')
8 page.wait_for_timeout(1000)
9
10 # Hover over the first popover to make it visible
11 first_trigger = page.locator('.tooltip-text').first
12 first_trigger.hover()
13 page.wait_for_timeout(500)
14
15 page.screenshot(path='test-popover-screenshot.png', full_page=True)
16 browser.close()
17 print("Screenshot saved to test-popover-screenshot.png")