          )
          continent_select.select_by_visible_text("South America")
          self.selenium.find_element(By.CSS_SELECTOR, '[type="submit"]').click()
          self.selenium.switch_to.window(self.selenium.window_handles[0])
  
          self.assertHTMLEqual(
              _get_HTML_inside_element_by_id(born_country_select_id),
              """
              <option value="" selected="">---------</option>
 
</s> remove         self.selenium.find_element(By.CSS_SELECTOR, '[name="_save"]').click()
 </s> add         with self.wait_page_loaded():
            self.selenium.find_element(By.CSS_SELECTOR, '[name="_save"]').click()
        self.wait_until(lambda d: len(d.window_handles) == 1, 1)
          )
          continent_select.select_by_visible_text("South America")
          self.selenium.find_element(By.CSS_SELECTOR, '[type="submit"]').click()
        self.wait_until(lambda d: len(d.window_handles) == 1, 1)
          self.selenium.switch_to.window(self.selenium.window_handles[0])
  
          self.assertHTMLEqual(
              _get_HTML_inside_element_by_id(born_country_select_id),
              """
              <option value="" selected="">---------</option>
keep keep add keep 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