title: How can I get a intermediate URL from a redirect chain from Selenium using Python?
body: <p>I'm using Selenium with Python API and Firefox to do some automatic stuff, and here's my problem:</p>
  
  <ol>
  <li>Click a link on original page, let's say on page <em>a.com</em></li>
  <li>I'm redirected to <em>b.com/some/path?arg=value</em></li>
  <li>And immediately I'm redirected again to the final address <em>c.com</em></li>
  </ol>
  
  <p>So is there a way to get the intermediate redirect URL <em>b.com/some/path?arg=value</em> with Selenium Python API? I tried <code>driver.current_url</code> but when the browser is on <em>b.com</em>, seems the browser is still under loading and the result returned only if the final address <em>c.com</em> is loaded.</p>
  
  <p>Another question is that is there a way to add some event handlers to Selenium for like URL-change? Phantomjs has the capacity but I'm not sure for Selenium.</p>