title: How do I use Headless Chrome in Chrome 60 on Windows 10?
body: <p>I've been looking at the following article about Headless Chrome:<br>
  <a href="https://developers.google.com/web/updates/2017/04/headless-chrome" rel="noreferrer">https://developers.google.com/web/updates/2017/04/headless-chrome</a></p>
  
  <p>I just upgraded Chrome on Windows 10 to version 60, but when I run either of the following commands from the command line, nothing seems to happen:</p>
  
  <pre><code>chrome --headless --disable-gpu --dump-dom https://www.google.com/
  chrome --headless --disable-gpu --print-to-pdf https://www.google.com/
  </code></pre>
  
  <p>And I'm running all of these commands from the following path (the default installation path for Chrome on Windows):</p>
  
  <pre><code>C:\Program Files (x86)\Google\Chrome\Application\
  </code></pre>
  
  <p>When I run the commands, something seems to process for a second, but I don't actually see anything. What am I doing wrong?<br>
  Thanks.</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>As noted by Mark Rajcok, if you add <code>--enable-logging</code> to the <code>--dump-dom</code> command, it works. Also, the <code>--print-to-pdf</code> command works as well in Chrome 61.0.3163.79, but you'll probably have to specify a different path for the output file in order to have the necessary permissions to save it.</p>
  
  <p>As such, the following two commands worked for me:</p>
  
  <pre><code>"C:\Program Files (x86)\Google\Chrome\Application\chrome" --headless --disable-gpu --enable-logging --dump-dom https://www.google.com/
  "C:\Program Files (x86)\Google\Chrome\Application\chrome" --headless --disable-gpu --print-to-pdf=D:\output.pdf https://www.google.com/
  </code></pre>
  
  <p>I guess the next step is being able to step through the dumped DOM like PhantomJS with DOM selectors and whatnot, but I suppose that's a separate question.</p>
  
  <hr>
  
  <p><strong>Edit #2:</strong></p>
  
  <p>For what it's worth, I recently came across a Node API for Headless Chrome called Puppeteer (<a href="https://github.com/GoogleChrome/puppeteer" rel="noreferrer">https://github.com/GoogleChrome/puppeteer</a>), which is really easy to use and delivers all the power of Headless Chrome. If you're looking for an easy way to use Headless Chrome, I highly recommend it.</p>