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

0 downloads

dbbasic-web-native/debug-disclosure-console.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
debug-disclosure-console.py · 573 bytes · 21 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
7 errors = []
8 page.on("console", lambda msg: print(f"Console {msg.type}: {msg.text}"))
9 page.on("pageerror", lambda exc: errors.append(str(exc)))
10
11 page.goto('file:///Users/danq/dbbasic-web-native/test-disclosure.html')
12 page.wait_for_timeout(1000)
13
14 if errors:
15 print("\nErrors:")
16 for error in errors:
17 print(error)
18 else:
19 print("\nNo errors detected")
20
21 browser.close()