/// <summary> /// Selecting Student in Instructor Report /// </summary> public void SelectStudentInInstructorReport(RptMainUXPage. PegasusInstructorReportEnum reportType) { //Selecting the Student logger.LogMethodEntry("RptSelectStudentsPage", "SelectStudentInInstructorReport" , base.IsTakeScreenShotDuringEntryExit); try { switch (reportType) { case RptMainUXPage.PegasusInstructorReportEnum.ActivityResultsbyStudent: base.WaitUntilWindowLoads(RptSelectStudentsResource. RptSelectStudents_Page_Ins_Window_Name); //Select Select Students Window base.SelectWindow(RptSelectStudentsResource. RptSelectStudents_Page_Ins_Window_Name); //Select the Student this.SelectStudentToGenerateReport(RptSelectStudentsResource .RptSelectStudents_Page_Ins_Student_LastName); break; case RptMainUXPage.PegasusInstructorReportEnum.StudentResultsbyActivity: base.WaitUntilWindowLoads(RptSelectStudentsResource. RptSelectStudents_Page_Ins_SelectStudent_Window_Name); //Select Select Student Window base.SelectWindow(RptSelectStudentsResource. RptSelectStudents_Page_Ins_SelectStudent_Window_Name); //Select the Student this.SelectStudentToGenerateReport(RptSelectStudentsResource .RptSelectStudents_Page_Ins_Student_LastName); break; case RptMainUXPage.PegasusInstructorReportEnum.StudyPlanResults: base.WaitUntilWindowLoads(RptSelectStudentsResource. RptSelectStudents_Page_Ins_Window_Name); //Select Select Students Window base.SelectWindow(RptSelectStudentsResource. RptSelectStudents_Page_Ins_Window_Name); //Select the Student this.SelectStudentToGenerateReport(RptSelectStudentsResource .RptSelectStudents_Page_Ins_Student_LastName); break; } base.WaitForElement(By.PartialLinkText(RptSelectStudentsResource. RptSelectStudents_Page_Ins_AddLinkText_Locator)); //Click on Add Button base.ClickButtonByPartialLinkText(RptSelectStudentsResource. RptSelectStudents_Page_Ins_AddLinkText_Locator); //Check If Window is Close base.IsPopUpClosed(Convert.ToInt32(RptSelectStudentsResource. RptSelectStudents_Page_Ins_Window_Count)); } catch (Exception e) { ExceptionHandler.HandleException(e); } logger.LogMethodExit("RptSelectStudentsPage", "SelectStudentInInstructorReport" , base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Click on Select Student Button /// </summary> public void SelectStudent(RptMainUXPage.PegasusInstructorReportEnum reportTypeEnum) { //Click on Select Student Button logger.LogMethodEntry("RptGCOptionsUXPage", "SelectStudent", base.IsTakeScreenShotDuringEntryExit); try { base.SelectWindow(RptMainPageResource .RptMain_Page_WindowName_Title); //Click on Select Student this.ClickonSelectStudent(); //Selecting the Student new RptSelectStudentsPage().SelectStudentInInstructorReport(reportTypeEnum); } catch (Exception e) { ExceptionHandler.HandleException(e); } logger.LogMethodExit("RptGCOptionsUXPage", "SelectStudent", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Select Students In Study Plan Results Report /// </summary> /// <param name="reportTypeEnum">This is Report Type</param> public void SelectStudentInStudyPlanResultsReport( RptMainUXPage.PegasusInstructorReportEnum reportTypeEnum) { //Select Student In Study Plan Results Report logger.LogMethodEntry("RptGCOptionsUXPage", "SelectStudentInStudyPlanResultsReport", base.IsTakeScreenShotDuringEntryExit); try { //Select Report Window base.SelectWindow(RptMainPageResource .RptMain_Page_WindowName_Title); //Wait for Frame base.WaitForElement(By.Id(RptGCOptionsUXPageResource. RptGCOptionsUX_Page_Frame_Id_Locator)); //Switch To Frame base.SwitchToIFrame(RptGCOptionsUXPageResource. RptGCOptionsUX_Page_Frame_Id_Locator); base.WaitForElement(By.PartialLinkText(RptGCOptionsUXPageResource. RptGCOptionsUX_Page_SelectStudent_Link_Locator)); //Click on Select Student Button base.ClickButtonByPartialLinkText(RptGCOptionsUXPageResource. RptGCOptionsUX_Page_SelectStudent_Link_Locator); //Select the Student new RptSelectStudentsPage().SelectStudentInInstructorReport(reportTypeEnum); //Verify the Select Student Pop up is closed base.IsPopUpClosed(Convert.ToInt32(RptGCOptionsUXPageResource .RptGCOptionsUX_Page_NumberOfWindow)); } catch (Exception e) { ExceptionHandler.HandleException(e); } logger.LogMethodExit("RptGCOptionsUXPage", "SelectStudentInStudyPlanResultsReport", base.IsTakeScreenShotDuringEntryExit); }