public static void CreateNewAction() { ProgramAdmin.ProgramsNavigation(); WebDriverUtils.HoldDriver(); WebDriverUtils.ClickAction(ProgramsPageObjects.CreateNewProgramLink()); WebDriverUtils.HoldDriver(); }
public static void FundingSourceSearchTest() { var data = TestEnvironment.LoadJson(); WebDriverUtils.InputValues(LoginPageObjects.EmailField(), data.Login.Username); WebDriverUtils.ClickAction(LoginPageObjects.NextButtonEmail()); WebDriverUtils.InputValues(LoginPageObjects.PasswordField(), data.Login.Password); WebDriverUtils.ClickAction(LoginPageObjects.SignInButton()); WebDriverUtils.ClickAction(LoginPageObjects.YesButton()); WebDriverUtils.ClickAction(LoginPageObjects.DoneButton()); WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink()); WebDriverUtils.ClickAction(FundingSourcePageObjects.FundingSourceLink()); WebDriverUtils.InputValues(FundingSourcePageObjects.SearchFundingSourceField(), data.FundingSource.FundSearchKeyword); WebDriverUtils.ClickAction(FundingSourcePageObjects.FundingSourceRunSearch()); }
public static void PartnerSearchAction() { var data = TestEnvironment.LoadJson(); WebDriverUtils.InputValues(LoginPageObjects.EmailField(), data.Login.Username); WebDriverUtils.ClickAction(LoginPageObjects.NextButtonEmail()); WebDriverUtils.InputValues(LoginPageObjects.PasswordField(), data.Login.Password); WebDriverUtils.ClickAction(LoginPageObjects.SignInButton()); WebDriverUtils.ClickAction(LoginPageObjects.YesButton()); WebDriverUtils.ClickAction(LoginPageObjects.DoneButton()); WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink()); WebDriverUtils.ClickAction(PartnerPageObjects.PartnerLink()); WebDriverUtils.InputValues(PartnerPageObjects.PartnerSearchField(), data.Partners.PartnerKeyword); WebDriverUtils.ClickAction(PartnerPageObjects.SearchPartnerIncludeInactiveCheckbox()); WebDriverUtils.ClickAction(PartnerPageObjects.PartnerSearchButton()); }
public static void ProgramSearchAction() { var data = TestEnvironment.LoadJson(); WebDriverUtils.InputValues(LoginPageObjects.EmailField(), data.Login.Username); WebDriverUtils.ClickAction(LoginPageObjects.NextButtonEmail()); WebDriverUtils.InputValues(LoginPageObjects.PasswordField(), data.Login.Password); WebDriverUtils.ClickAction(LoginPageObjects.SignInButton()); WebDriverUtils.ClickAction(LoginPageObjects.YesButton()); WebDriverUtils.ClickAction(LoginPageObjects.DoneButton()); WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink()); WebDriverUtils.HoldDriver(); WebDriverUtils.InputValues(ProgramsPageObjects.ProgramSearchField(), data.Programs.ProgramKeyword); WebDriverUtils.HoldDriver(); WebDriverUtils.ClickAction(ProgramsPageObjects.RunSearch()); }
public void ProgramsOverviewNavigationTest() { try { ProgramOverview.ProgramOverviewNavigation(); WebDriverUtils.HoldDriver(); Assert.AreEqual(TestEnvironment.LoadJson().Programs.ProgramOverviewGenDetails, WebDriverUtils.TextChecker(ProgramsPageObjects.ProgramOverviewGenDetails())); Assert.AreEqual(TestEnvironment.LoadJson().Programs.ProgramOverviewEligReq, WebDriverUtils.TextChecker(ProgramsPageObjects.ProgramOverviewEligibilityHeader())); log.Info(System.Reflection.MethodBase.GetCurrentMethod()); log.Info(LoginPageObjects.SuccessMessage()); } catch (Exception ex) { log.Error(System.Reflection.MethodBase.GetCurrentMethod()); log.Error(LoginPageObjects.FailedMessage() + ex.Message); Assert.Fail(ex.Message); } }
public void ProgramsCreateNewTest() { try { ProgramAdminCreateNew.CreateNewAction(); Assert.AreEqual(TestEnvironment.LoadJson().Programs.CreateNewHeader, WebDriverUtils.TextChecker(ProgramsPageObjects.CreateNewProgramHeader())); log.Info(System.Reflection.MethodBase.GetCurrentMethod()); log.Info(LoginPageObjects.SuccessMessage()); } catch (Exception ex) { log.Error(System.Reflection.MethodBase.GetCurrentMethod()); log.Error(LoginPageObjects.FailedMessage() + ex.Message); Assert.Fail(ex.Message); } }
public void ProgramsSearchTest() { try { ProgramsSearchAction.ProgramSearchAction(); WebDriverUtils.HoldDriver(); Assert.AreNotEqual(TestEnvironment.LoadJson().Programs.ResultCount, WebDriverUtils.TextChecker(ProgramsPageObjects.SeachResultCount())); log.Info(System.Reflection.MethodBase.GetCurrentMethod()); log.Info(LoginPageObjects.SuccessMessage()); } catch (Exception ex) { log.Error(System.Reflection.MethodBase.GetCurrentMethod()); log.Error(LoginPageObjects.FailedMessage() + ex.Message); Assert.Fail(ex.Message); } }
public static void ProgramsNavigation() { LoginAction.Login(); WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink()); }
public static void ProgramOverviewNavigation() { ProgramsSearchAction.ProgramSearchAction(); WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramOverviewNavigation()); }