title: Get URLs of all open tabs using Python
body: <p>I am creating a webdriver instance using selenium for some automation work. I am opening multiple tabs at a time and would like to know if there is a way to get the URLs of all the tabs open. </p>
  
  <pre><code>driver=webdriver.Chrome()
  driver.current_url
  </code></pre>
  
  <p>The above code provides me with the URL of the first tab only. Another thing I tried was:</p>
  
  <pre><code>driver.window_handles[0].current_url
  </code></pre>
  
  <p>The above solution failed as <code>window_handles()</code> returns a unicode object which does not contain <code>current_url</code> I prefer not going through all the tabs actively in order to find the <code>current_url</code> of each tab as it would disrupt the automation task at hand.</p>