title: Using Network.requestIntercepted with Puppeteer
body: <p>I'm trying to get urls of navigation/domain redirects using the Chrome Dev tools <code>Network.requestIntercepted</code> event through Puppeteer, but I cant seem to access any of the events data.</p>
  
  <p>The code below doesn't seem to trigger <code>Network.requestIntercepted</code> and I can't work out why.</p>
  
  <p>Any help appreciated. </p>
  
  <pre><code>// console command
  // node chrome-commands.js http://yahoo.com test
  
  var url = process.argv[2];
  const puppeteer = require('puppeteer');
  
  puppeteer.launch().then(async browser =&gt; {
  const page = await browser.newPage();
  const client = await page.target().createCDPSession();
  await client.send('Network.enable');
  
  await client.on('Network.requestIntercepted', (e) =&gt; {
    console.log(e);
    console.log("EVENT INFO: ");
    console.log(e.interceptionId);
    console.log(e.resourceType);
    console.log(e.isNavigationRequest);
  });
  
    await page.goto(url);
    await browser.close();
  });
  </code></pre>