capture.py
Tools · A check on the result · MIT
- What it does
Serves a built scene from a local port, opens it in headless Chromium, visits its named views, clicks controls you name and writes PNGs and the console log. --motion-check takes a second frame later and --expect-motion fails if the two are the same. It records and does not judge.
- Get it
python3 scripts/capture.py --dir dist --all-views --click "#control" --out captures [--motion-check 2000 --expect-motion]
- Needs
Python 3; pip install playwright && playwright install chromium (not bundled; without it the script exits 3)
- License
MIT
- From