title: How to capture JS redirects in Selenium?
body: <p>Is there any way to capture all the redirects on the page performed in JS? For instance, let's take a look at this web page making redirect using window.location</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Redirect JS&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script&gt;
          window.location = "http://www.example.com";
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>or meta tag</p>
  
  <pre><code>&lt;meta http-equiv="refresh" content="0; url=http://example.com/"&gt;
  </code></pre>
  
  <p>I would like to render web page and get all urls where user has been redirected. Is it possible? How to do that in selenium?</p>