public void Resident_GCEP_SortBy_Progress() { /// 1.Navigate to the login page login as UserInfo role = UserUtils.GetUser(UserRole.Ama_Staff); LoginPage LP = Navigation.GoToLoginPage(browser); EducationCenterPage ED = LP.LoginAsUser("10031193", "password"); /// 2.click to GCEP link navigate to Gcep page and waiting load icon disappear GCEPPage Gcep = ED.ClickToAdvance(ED.GcepLnk); /// 3. Clicking resident sort by progrees button. Gcep.ResidentGCEPSortBYProgressBtn.Click(); Gcep.WaitForInitialize(); /// 4.Clicking to Sort By duration button and wait to page reload. do { ElemSet.ScrollToElement(browser, Gcep.FaceBookLnk); }while (!Gcep.ResidentGcepShowElectiveCourseLnk.Displayed); /// 5.Getting all progress information checking all conditions by AC#28 Assert.True(Gcep.ResidentCourseProgressVerification(Gcep.ResidentCoutseStatusFailedLbl, Gcep.ResidentCourseStatusLockedLbl)); }