def post_results(self):
     print ("Posting results...")
     while True:
         try:
             PTFinter.enter_results(self.league, self.matches, self.driver)
             break
         except errors.UnexpectedAlertPresentException:
             self.driver.switch_to_alert().accept()
             league_name = self.league.get_league_name()
             print("Alert Error for {}".format(league_name))
             errors.log_error("Alert Error for {}".format(league_name))
 def clear_footprint(self):
     """Make sure that the matches have at least a temporary prediction."""
     PTFinter.enter_results(
         self.league, self.matches, self.driver, dummy=True)