title: Listening for URL changes in puppeteer
body: <p>Is there a way to listen for URL changes/redirects in Puppeteer? For example if I point the browser to <code>http://www.somesite.com/home</code> and it redirects to <code>http://www.somesite.com/login</code>, I would like a way to observe these changes and then terminate the current action.</p>
  <p>I tried this:</p>
  <pre><code>await page.setRequestInterception(true);
  page.on('request', interceptedRequest =&gt; {
      console.log(interceptedRequest.url());
      interceptedRequest.continue();
  });
  </code></pre>
  <p>but this is just all the requests. It doesn't log when the url changes.</p>