Esempio n. 1
0
        public void OverwriteModeOfMarks_OnAttendanceRegister()
        {
            AttendanceNavigations.NavigateToEditMarksMenuPage();
            var registerView = new AttendanceSearchPanel();

            registerView.ClickRadioButton("Week");

            var group = new AttendanceSearchPanel();

            group.Select("Year Group", "Year 1", "Year 2");
            AttendanceDetails editMarksPage = group.EditMarksSearchButton();

            //Vertical Cursor Orientation in Preserve Mode
            EditMarksGridHelper grid = new EditMarksGridHelper();

            grid.ClickOrientationbutton(grid.preserveButton);
            grid.ClickOrientationbutton(grid.overwriteMode);
            EditMarksGridHelper.ClickFirstCellofColumn("3");
            EditMarksGridHelper.GetEditor().SendKeys("L");
            EditMarksGridHelper.GetEditor().SendKeys("L");
            EditMarksGridHelper.GetEditor().SendKeys("B");
            EditMarksGridHelper.GetEditor().SendKeys("C");
            EditMarksGridHelper.GetEditor().SendKeys("C");
            EditMarksGridHelper.GetEditor().SendKeys("D");
        }
Esempio n. 2
0
        public void VerifyWeekViewOfRegister()
        {
            AttendanceNavigations.NavigateToEditMarksMenuPage();
            var registerView = new AttendanceSearchPanel();

            registerView.ClickRadioButton("Week");
            var group = new AttendanceSearchPanel();

            group.Select("Year Group", "Year 1", "Year 2");
            AttendanceDetails editMarksPage = group.EditMarksSearchButton();

            IWebElement grid    = SeleniumHelper.Get(By.CssSelector("[data-section-id=\"searchResults\"]"));
            var         columns = grid.FindElements(By.CssSelector("[data-menu-column-id]"));

            // Only the Pupil Name column And Single Day Sessions should be present in the grid
            Assert.IsTrue(columns.Count == 12);
        }
Esempio n. 3
0
        public void PreseveModeOfMarks_OnAttendanceRegister()
        {
            AttendanceNavigations.NavigateToEditMarksMenuPage();
            var registerView = new AttendanceSearchPanel();

            registerView.ClickRadioButton("Week");

            var group = new AttendanceSearchPanel();

            group.Select("Year Group", "Year 1", "Year 2");
            AttendanceDetails editMarksPage = group.EditMarksSearchButton();

            var editMarksTripletPage = new EditMarksTriplet();
            var editPage             = editMarksTripletPage.SearchCriteria.Search <EditMarksPage>();

            var editmarkTable = editPage.Marks;
            IEnumerable <SchoolAttendanceCode> getHolidays = Queries.GetAttendanceNotRequiredCodes();
            List <string> codes = getHolidays.Select(x => x.Code).ToList <string>();

            if (codes.Contains(editmarkTable[1][2].Text))
            {
                Console.WriteLine("Marks can't be overwritten on Holidays");
                return;
            }

            //Vertical Cursor Orientation in Preserve Mode
            EditMarksGridHelper grid = new EditMarksGridHelper();

            grid.ClickOrientationbutton(grid.preserveButton);
            grid.ClickOrientationbutton(grid.preserveMode);
            EditMarksGridHelper.ClickFirstCellofColumn("3");
            EditMarksGridHelper.GetEditor().SendKeys("L");
            EditMarksGridHelper.GetEditor().SendKeys("L");
            EditMarksGridHelper.GetEditor().SendKeys("B");
            EditMarksGridHelper.GetEditor().SendKeys("C");
            EditMarksGridHelper.GetEditor().SendKeys("C");
            EditMarksGridHelper.GetEditor().SendKeys("D");
        }