public void TC03_FPWeb_ValidatePeopleSelector_SummaryPage() { var dr = Lib_Login.Login(); var Summary = new clsSummaryPage(); PageFactory.InitElements(dr, Summary); Summary.btn_PeopleSearch.Click(); var wait = new WebDriverWait(dr, new TimeSpan(0, 0, 30)); var element = wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.XPath("//input[@type='text' and @placeholder='Type part of Surname, Given Names, Nickname or Organisation/People Group and press Enter to search.']"))); Summary.txtSearch_grdPeople.SendKeys("SurnameTestUser6"); Summary.btn_Search.Click(); var element2 = wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.XPath("//*[@id=\"grdPeople\"]/div[2]/table"))); Summary.grdPeopleSelectorResult.Click(); Summary.btnApply.Click(); // Lib_Logout.Logout(dr); }
public void TC01_FPWeb_ValidateMenu() { test = extent.CreateTest("TC01_FPWeb_Validation"); var dr = Lib_Login.Login(); var wait = new OpenQA.Selenium.Support.UI.WebDriverWait(dr, new TimeSpan(0, 0, 30)); var SidebarMenu = new clsMainPage_SidebarMenu(); PageFactory.InitElements(dr, SidebarMenu); SidebarMenu.Summary_link.Click(); test.Pass("Assertion Passed"); // SidebarMenu.Calendar_link.Click(); // var element = wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.Id("href12005"))); // SidebarMenu.ControlHoursReport_link.Click(); // SidebarMenu.CurrencyHistoryReport_link.Click(); //SidebarMenu.EventsReport_link.Click(); // SidebarMenu.Roster_link.Click(); // SidebarMenu.DailyScheduling_link.Click(); // SidebarMenu.DutyTimes_link.Click(); // SidebarMenu.ProgrammeViewer_link.Click(); // SidebarMenu.KnowledgeBase_link.Click(); // SidebarMenu.StatusBoard_link.Click(); // SidebarMenu.StudentResults_link.Click(); // Lib_Logout.Logout(dr); }