          self.selenium.find_element(By.CSS_SELECTOR, '[type="submit"]').click()
          self.selenium.switch_to.window(self.selenium.window_handles[0])
  
          # Submit the new Traveler.
          self.selenium.find_element(By.CSS_SELECTOR, '[name="_save"]').click()
          traveler = Traveler.objects.get()
          self.assertEqual(traveler.born_country.name, "Argentina")
          self.assertEqual(traveler.living_country.name, "Italy")
          self.assertEqual(traveler.favorite_country_to_vacation.name, "Qatar")
  
 
</s>
        with self.wait_page_loaded():
            self.selenium.find_element(By.CSS_SELECTOR, '[name="_save"]').click()
          self.selenium.find_element(By.CSS_SELECTOR, '[type="submit"]').click()
          self.selenium.switch_to.window(self.selenium.window_handles[0])
  
          # Submit the new Traveler.
        with self.wait_page_loaded():
            self.selenium.find_element(By.CSS_SELECTOR, '[name="_save"]').click()
          traveler = Traveler.objects.get()
          self.assertEqual(traveler.born_country.name, "Argentina")
          self.assertEqual(traveler.living_country.name, "Italy")
          self.assertEqual(traveler.favorite_country_to_vacation.name, "Qatar")
  
keep keep keep keep replace keep keep keep keep keep
 Made SeleniumTests.test_updating_related_objects_updates_fk_selects_except_autocompletes() test less flaky by adding explicit Selenium wait.
tests/admin_views/tests.py