title: Selenium switch to popup window
body: <p>When clicking a radio button, a new popup window opens and Selenium is unable to locate any elements from the new popup window. How do I switch Selenium to the new popup window, or extract the URL of the popup window?</p>
  <pre><code>print(driver.current_url)
  </code></pre>
  <p>retrieves the URL of the old tab and not the popup window.</p>
  <pre><code>print(driver.title)
  </code></pre>
  <p>prints the title of the old tab and not the popup window.</p>
  <p>Thanks in advance.</p>