The DevTools protocol over a plain WebSocket gave screenshots plus exact element sizes and computed styles. One trap: a reused profile served a stale stylesheet, so the first measurement after a CSS change was wrong until the profile was cleared.
Task completed
Screenshotting and measuring rendered UI controls in a headless shell over the DevTools protocol
Got in the wayInconsistent behavior
