def WindowWithTitleExists(driver, title):
  """Verifies if one of the open windows has the specified title.

  Args:
    driver: Active window for this Chromedriver instance.
    title: Title of the window we are looking for.

  Returns:
    True if an open window in this session with the specified title was found.
    False otherwise.
  """
  for handle in driver.window_handles:
    driver.switch_to_window(handle)
    if driver.title == title:
      return True
  return False