title: Wait for page redirect Selenium WebDriver (Python)
body: <p>I have a page which loads dynamic content with ajax and then redirects after a certain amount of time (not fixed). How can I force Selenium Webdriver to wait for the page to redirect then go to a different link immediately after?</p>
  
  <pre><code>import time
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.chrome.options import Options
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.common.exceptions import TimeoutException
  from selenium.webdriver.support.ui import WebDriverWait
  
  driver = webdriver.Chrome();
  driver.get("http://www.website.com/wait.php") 
  </code></pre>