title: Check if a page is switched to another page using Selenium in Python
body: <p>The following code opens a page and then logins in: </p>
  
  <pre><code>self.driver.get(target_url)
  login = self.driver.find_element_by_name("login")
  login.send_keys("user1")
  password = self.driver.find_element_by_name("password")
  password.send_keys("password123")
  login.submit()
  </code></pre>
  
  <p>How do I check if the page is switched to another page after submitting the form?</p>