public void ManageKPI()
        {
            var attendanceKpi = FacilitiesNavigation.NavigateToManageKPIPage();

            attendanceKpi.ModifyTargetValue("70.5");
            attendanceKpi.ModifyBenchMark("80.5");
            attendanceKpi.ModifyThresholdMinimum("90.5");
            attendanceKpi.ModifyThresholdMaximum("95.5");
            attendanceKpi.Save();
            Assert.IsTrue(attendanceKpi.HasConfirmedSave());
        }
        public void ValidateBechmark()
        {
            var attendanceKpi = FacilitiesNavigation.NavigateToManageKPIPage();

            attendanceKpi.ClearBenchMark();
            attendanceKpi.ModifyTargetValue("70.55");
            attendanceKpi.Save();
            //TODO: change for Story ID 8720
            var arrWarnings = attendanceKpi.GetValidationWarningByCssSelector();

            Assert.Contains("'National average attendance' is required.", arrWarnings);
            //Assert.Contains("Validation Warning", arrWarnings);
        }
        public void BRValidation()
        {
            var attendanceKpi = FacilitiesNavigation.NavigateToManageKPIPage();

            attendanceKpi.ModifyTargetValue("70.5");
            attendanceKpi.ModifyBenchMark("80.5");
            attendanceKpi.ModifyThresholdMinimum("90");
            attendanceKpi.ModifyThresholdMaximum("80");
            attendanceKpi.Save();
            //TODO: change for Story ID 8720
            var arrWarnings = attendanceKpi.GetValidationWarningByCssSelector();

            Assert.Contains("'Display red for attendance below n' cannot be larger than 'Display green for attendance above or equal to n'.", arrWarnings);
            //Assert.Contains("Validation Warning", arrWarnings);
        }
        public void CheckCurrentAcademicYearSelected()
        {
            var attendanceKpi = FacilitiesNavigation.NavigateToManageKPIPage();

            Assert.IsTrue(attendanceKpi.IsCurrentAcademicYearSelected());
        }