Beispiel #1
0
 public void ThenItShouldDisplaySuccessfulMessageInPage(string successMsg, string page)
 {
     try
     {
         GenericTestStep.StepToItShouldDisplaySuccessfulMessageInPage(successMsg, page);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         bool isManageOrganizationWindowPresent = GenericHelper.IsPopUpWindowPresent("Manage Organization");
         if (isManageOrganizationWindowPresent)
         {
             GenericHelper.SelectWindow("Manage Organization");
             WebDriver.Close();
         }
         ThenIClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         throw new Exception(e.ToString());
     }
 }