private static void NavigateToSchoolDetails()
        {
            var page = SignInPage.NavigateTo(Urlundertest);

            page.EnterUserId(Testuser);
            page.EnterPassword(Password);
            page.SignIn();
            Reporter.Log("testing with " + Testuser + " on " + Urlundertest);

            var tenantPage = new SelectTenantPage();

            tenantPage.ValidateElements();
            tenantPage.EnterTenant("1").Submit();
            var school = new SelectSchool();

            school.SelectBySchoolName("Abbey Hill Primary School");
            school.SignIn();

            //menu
            var menu = new TaskMenuBar();

            menu.ClickTaskMenuBar();
            menu.ClickSchoolManagementLink();

            menu.ClickSchoolDetailsLink();
        }
Beispiel #2
0
        public static HomePage NavigateTo(string user, string password, int tenantId, string schoolName, string url, string path, bool schoolSelection = true, params string[] enabledFeatures)
        {
            var signInPage = SignInPage.NavigateTo(tenantId, url, path, enabledFeatures);

            signInPage.EnterUserId(user);
            signInPage.EnterPassword(password);
            signInPage.SignIn(schoolSelection);

            if (schoolSelection)
            {
                var selectSchool = new SelectSchool();
                selectSchool.SelectBySchoolName(schoolName);
                selectSchool.SignIn();
            }

            return(new HomePage());
        }
Beispiel #3
0
        public static HomePage NavigateTo(string user, string password, int tenantId, string schoolName, string url, string path, bool schoolSelection = true)
        {
            var signInPage = SignInPage.NavigateTo(tenantId, url, path);

            signInPage = signInPage.EnterUserId(user);
            signInPage = signInPage.EnterPassword(password);
            signInPage.SignIn();
            System.Threading.Thread.Sleep(500);
            if (schoolSelection)
            {
                var selectSchool = new SelectSchool();
                selectSchool.SelectBySchoolName(schoolName);
                selectSchool.SignIn();
            }

            return(new HomePage());
        }
Beispiel #4
0
        // (Need to remove)
        private static void NavigateToSchoolDetails()
        {
            var page = SignInPage.NavigateTo("https://lab-three.sims8.com", "/iSIMSMVCClientFarm1/");

            page.EnterUserId(Testuser);
            page.EnterPassword(Password);
            page.SignIn();
            //Reporter.Log("testing with " + Testuser + " on " + Urlundertest);

            var tenantPage = new SelectTenantPage();

            tenantPage.ValidateElements();
            tenantPage.EnterTenant("1").Submit();
            var school = new SelectSchool();

            school.SelectBySchoolName("Abbey Hill Primary School");
            school.SignIn();

            var link = new TaskMenuBar();

            link.ClickTaskMenuBar();
            link.ClickSchoolManagementLink();
            link.ClickSchoolDetailsLink();
        }