Пример #1
0
        public void DeleteAllScheme(string[] basicDetails, string[] teachingGroup)
        {
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator, "Curriculum Structure");
            AutomationSugar.NavigateMenu("Tasks", "School Groups", "Curriculum Structure");
            Wait.WaitForDocumentReady();

            Random rnd          = new Random();
            string displayOrder = rnd.Next(1, 50).ToString();

            var curriculumStructureTriplet = new CurriculumStructureTriplet();

            curriculumStructureTriplet.SearchCriteria.SearchBySchemeName = "Logigear_";
            //curriculumStructureTriplet.SearchCriteria.SearchByAcademicYear = null;
            var searchResultList = curriculumStructureTriplet.SearchCriteria.Search().ToList();

            if (searchResultList.Count > 0)
            {
                foreach (var schemeResult in searchResultList)
                {
                    var searchResult            = curriculumStructureTriplet.SearchCriteria.Search().FirstOrDefault();
                    var CurriculumStructurePage = searchResult.Click <CurriculumStructurePage>();
                    curriculumStructureTriplet.Delete();
                    curriculumStructureTriplet.Refresh();
                }
            }
        }
Пример #2
0
        public void DeleteAllScheme(string[] basicDetails, string[] structuralGroup)
        {
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator, "Curriculum Structure");
            AutomationSugar.NavigateMenu("Tasks", "School Groups", "Curriculum Structure");
            Wait.WaitForDocumentReady();

            var curriculumStructureTriplet = new CurriculumStructureTriplet();

            curriculumStructureTriplet.SearchCriteria.SearchBySchemeName = "Logigear_";
            var searchResultList = curriculumStructureTriplet.SearchCriteria.Search().ToList();

            foreach (var schemeResult in searchResultList)
            {
                var searchResult            = curriculumStructureTriplet.SearchCriteria.Search().FirstOrDefault();
                var CurriculumStructurePage = searchResult.Click <CurriculumStructurePage>();
                curriculumStructureTriplet.Delete();
                curriculumStructureTriplet.Refresh();
            }
        }