Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DevTools & Headless Chrome - GDG Devfest Lviv 2017

cowchimp
October 13, 2017

DevTools & Headless Chrome - GDG Devfest Lviv 2017

DevTools and Headless Chrome - The Automation Power-Couple

In this talk we'll see what problems we can fix (or better yet, avoid) by combining two things developers love: Chrome DevTools and automating repetitive tasks.

To do this we'll use a new capability introduced in Chrome 59: running Chrome in "Headless Mode".

First off we'll show the powers of each of these tools separately. We'll use DevTools to debug other platforms like node.js and iOS, and we'll use Chrome in Headless Mode to do things like take screenshots, and to scrape sites for data.

Then we'll explore how by combining the two you can make DevTools work for you around-the-clock. We'll cover how to run tests, and set up automatic alerts to catch bugs in your code. We'll also find out how to avoid performance degradation by monitoring everything about your app (amount of unused CSS, memory footprint, etc.)

cowchimp

October 13, 2017
Tweet

More Decks by cowchimp

Other Decks in Programming

Transcript

  1. Headless API Embedding app Chrome DevTools Frontend Adapted from content

    by © Sami Kyöstilä, Google goo.gl/yQi9kZ WebSockets
  2. Headless API Embedding app Chrome DevTools Frontend { id: 1,

    method: "Runtime.evaluate", params: { expression: "1 + 1" } } Adapted from content by © Sami Kyöstilä, Google goo.gl/yQi9kZ
  3. Headless API Embedding app Chrome DevTools Frontend { id: 1,

    result: { result: { type: "number", value: 2, description: "2" }, wasThrown: false } } { id: 1, method: "Runtime.evaluate", params: { expression: "1 + 1" } } Adapted from content by © Sami Kyöstilä, Google goo.gl/yQi9kZ
  4. Accessibility Console Device orientation Emulation Animation CSS DOM Heap profiler

    Application cache Database DOM debugger IndexedDB Cache storage Debugger DOM storage Input Inspector IO Layer tree Memory Network Page Profiler Rendering Runtime Security Service worker Tracing Worker Adapted from content by © Sami Kyöstilä, Google goo.gl/yQi9kZ
  5. Headless API Embedding app DevTools target DevTools client Adapted from

    content by © Sami Kyöstilä, Google goo.gl/yQi9kZ