DevTools and Headless Chrome - The Automation Power-Couple
summary
Combines the DevTools Protocol with Chrome 59 Headless Mode and puppeteer to run real browser actions from code, not just Selenium-style clicks. Implements CSS.startRuleUsageTracking plus stylesheet added events to compute unused CSS, turning an interactive measurement that shows 54% → 14% unused into a CI check that fails above 20%. Includes a runnable Node script that launches headless Chrome, mimics site navigation, reports the percentage, and demonstrates the numbers live.
AI-written summary · about
chapters (10)
- 0:00Start
- 2:58Web Automation
- 6:25Puppeteer
- 9:08Querying the Dom
- 10:38Chrome Dev Tools
- 15:32Flame Chart
- 18:55Toggle or Screencast
- 20:52Lighthouse
- 24:04The Coverage Panel
- 29:35Recap
related talks
25mDevTools and Headless Chrome–The Automation Power-Couple
31mThe Chrome DevTools Protocol!
35mOptimise your Web Development Workflow
25mAutomated Performance Testing With WebDriver
11mWhat's new in DevTools
21mWorking Well, The Future of JavaScript Testing
01h 15mPuppeteer can automate that!
30mModern Web Testing and Automation with Puppeteer
