Exemplo n.º 1
0
 public static void AddNewIncome()
 {
     HouseHoldOverviewAction.HouseHoldOverview();
     WebDriverUtils.ClickAction(IncomePageObjects.AddIncomeLink());
 }
 public void AddNewIncomeNavigation()
 {
     try
     {
         IncomeAction.AddNewIncome();
         Assert.AreEqual(TestEnvironment.LoadJson().Income.IncomeHeader, WebDriverUtils.TextChecker(IncomePageObjects.AddIncomeHeader()));
         log.Info(System.Reflection.MethodBase.GetCurrentMethod());
         log.Info(LoginPageObjects.SuccessMessage());
     }
     catch (Exception ex)
     {
         log.Error(System.Reflection.MethodBase.GetCurrentMethod());
         log.Error(LoginPageObjects.FailedMessage() + ex.Message);
         Assert.Fail(ex.Message);
     }
 }