public void ShouldHaveMandatorySelectedPupilDateField() { ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1(); ecSelectedPupil.ClickCreate(); CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption(); ecSelectedPupilPage.EnterDescription("Test Exceptional Circumstances"); ecSelectedPupilPage.mainPageStartDate.Clear(); ecSelectedPupilPage.mainPageEndDate.Clear(); AttendanceSearchPanel searchCriteria = ecSelectedPupilPage.ClickAddPupilLink(); var checkbox = SeleniumHelper.Get(AttendanceElements.AddPupilPopUpElements.PupilPickerSearchPanel); checkbox.Click(SeSugar.Automation.SimsBy.AutomationId("section_menu_Year Group")); checkbox.FindCheckBoxAndClick("Year Group", new List <string> { "Year 1", "Year 3" }); PupilPickerAvailablePupilSection AvailablePupils = searchCriteria.PupilPickerSearchButton(); AvailablePupils.GetAvailablePupils(); PupilPickerSelectedPupilSection selectedPupil = AvailablePupils.AddSelectedPupil(); CreateExceptionalCircumstancesPage ecSelectedPupilPage1 = selectedPupil.ClickExceptionalCircumstances_PupilPickerOkButton(); ecSelectedPupilPage1.Save(); Assert.IsTrue(ecSelectedPupilPage1.IsDisplayedValidationWarning()); }
public void ShouldAddSelectedPupilsInGrid(string startDate, string endDate, string yeargroup, string pupilForeName, string pupilSurName, string pupilName, string dateOfBirth, string DateOfAdmission) { DateTime dobSetup = Convert.ToDateTime(dateOfBirth); DateTime dateOfAdmissionSetup = Convert.ToDateTime(DateOfAdmission); var learnerIdSetup = Guid.NewGuid(); var BuildPupilRecord = this.BuildDataPackage(); BuildPupilRecord.CreatePupil(learnerIdSetup, pupilSurName, pupilForeName, dobSetup, dateOfAdmissionSetup, yeargroup); DataSetup DataSetPupil = new DataSetup(purgeBeforeInsert: false, purgeAfterTest: true, packages: BuildPupilRecord); AttendancePatternPage page = AttendanceNavigations.NavigateToAttendancePatternFromTaskMenu(); AttendanceSearchPanel searchcriteria = page.ClickAddPupilLink(); var checkbox = SeleniumHelper.Get(AttendanceElements.AddPupilPopUpElements.PupilPickerSearchPanel); checkbox.Click(SimsBy.AutomationId("section_menu_Year Group")); checkbox.FindCheckBoxAndClick("Year Group", new List <string> { yeargroup }); PupilPickerAvailablePupilSection AvailablePupils = searchcriteria.PupilPickerSearchButton(); AvailablePupils.GetAvailablePupils(); PupilPickerSelectedPupilSection selectedPupil = AvailablePupils.AddSelectedPupil(); AttendancePatternPage app1 = selectedPupil.ClickAttendancePattern_PupilPickerOkButton(); Assert.IsTrue(app1.trashIcon.Displayed); }
public void VerifyPupilNameSearchFilter() { ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1(); ecSelectedPupil.ClickCreate(); CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption(); AttendanceSearchPanel searchcriteria = ecSelectedPupilPage.ClickAddPupilLink(); SearchCriteria.SetCriteria("LegalSurname", "a"); PupilPickerAvailablePupilSection availablePupils = searchcriteria.PupilPickerSearchButton(); Assert.IsTrue(availablePupils.searchResults.Displayed); }
public void VerifyYearGroupSearchFilter() { ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1(); ecSelectedPupil.ClickCreate(); CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption(); AttendanceSearchPanel searchcriteria = ecSelectedPupilPage.ClickAddPupilLink(); var searchCriteria = SeleniumHelper.Get(AttendanceElements.AddPupilPopUpElements.PupilPickerSearchPanel); searchCriteria.Click(SeSugar.Automation.SimsBy.AutomationId("section_menu_Year Group")); searchCriteria.FindCheckBoxAndClick("Year Group", new List <string> { "Year 1", "Year 3" }); PupilPickerAvailablePupilSection availablePupils = searchcriteria.PupilPickerSearchButton(); Assert.IsTrue(availablePupils.searchResults.Displayed); }
public void ShouldAddSelectedPupilsInGrid() { ApplyMarkOverDateRangePage page = AttendanceNavigations.NavigateToApplyMarkOverDateRangeFromTaskMenu(); AttendanceSearchPanel searchcriteria = page.ClickAddPupilButton(); var checkbox = SeleniumHelper.Get(AttendanceElements.AddPupilPopUpElements.PupilPickerSearchPanel); checkbox.FindCheckBoxAndClick("Year Group", new List <string> { "Year 1", "Year 3" }); PupilPickerAvailablePupilSection AvailablePupils = searchcriteria.PupilPickerSearchButton(); AvailablePupils.GetAvailablePupils(); PupilPickerSelectedPupilSection selectedPupil = AvailablePupils.AddSelectedPupil(); ApplyMarkOverDateRangePage app1 = selectedPupil.ClickApplyMarkOverDateRange_PupilPickerOkButton(); Assert.IsTrue(app1.PupilGrid.Displayed); }
public void ShouldAddSelectedPupilsInGrid() { ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1(); ecSelectedPupil.ClickCreate(); CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption(); AttendanceSearchPanel searchCriteria = ecSelectedPupilPage.ClickAddPupilLink(); var checkbox = SeleniumHelper.Get(AttendanceElements.AddPupilPopUpElements.PupilPickerSearchPanel); checkbox.Click(SeSugar.Automation.SimsBy.AutomationId("section_menu_Year Group")); checkbox.FindCheckBoxAndClick("Year Group", new List <string> { "Year 1", "Year 3" }); PupilPickerAvailablePupilSection AvailablePupils = searchCriteria.PupilPickerSearchButton(); AvailablePupils.GetAvailablePupils(); PupilPickerSelectedPupilSection selectedPupil = AvailablePupils.AddSelectedPupil(); CreateExceptionalCircumstancesPage app1 = selectedPupil.ClickExceptionalCircumstances_PupilPickerOkButton(); Assert.IsTrue(app1.Trashicon.Displayed); }