public static void AdminUserNavigationAction() { SystemAdminOrganization.OrganizationNavigation(); WebDriverUtils.ClickAction(UserPageObjects.UserLink()); }
public static void CreateUserAction() { SystemAdminUsers.AdminUserNavigationAction(); WebDriverUtils.ClickAction(UserPageObjects.CreateNewUserLink()); }
public static void ProgramsNavigation() { LoginAction.Login(); WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink()); }
public void CreatePaymentNavigationTest() { try { PaymentActions.NavigateCreatePayments(); Assert.AreEqual(TestEnvironment.LoadJson().Finance.CreatePaymentHeader, WebDriverUtils.TextChecker(PaymentPageObjects.CreatePaymentHeaderLink())); 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 IWebElement ClientSearchText() { return(WebDriverUtils.WaitForElementByCss(".form__section.-justifyCenter>div>h2")); }
public static IWebElement ReferralLink() { return(WebDriverUtils.WaitForElementByXpath("//mat-row[1]/mat-cell[1]/a")); }
public static IWebElement FollowUpHeader() { return(WebDriverUtils.WaitForElementByXpath("//app-view-follow-up/app-header/section/div/h1")); }
public void TearDown() { WebDriverUtils.Quit(); }
public static void PartnerOverviewNavigation() { PartnerAdminSearch.PartnerSearchAction(); WebDriverUtils.ClickAction(PartnerPageObjects.ProgramDetailsLink()); }
public static void TransmittalOverviewNavigation() { SearchTransmittalAction.TransmittalSearchAction(); WebDriverUtils.ClickAction(TransmittalPageObjects.TransmittalOverviewNavigaterLink()); }
public void TestSetup() { myDriver = WebDriverUtils.Get(); }
public void FundingSourceCreateNewTest() { try { FundingSourceAdminCreateNew.FundingSourceAdminCreateNewAction(); WebDriverUtils.HoldDriver(); Assert.AreEqual(TestEnvironment.LoadJson().FundingSource.CreateNewHeader, WebDriverUtils.TextChecker(FundingSourcePageObjects.CreateFundHeader())); 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 FamilyGoalPlanCreate() { HouseHoldOverviewAction.HouseHoldOverview(); WebDriverUtils.ClickAction(FamilyGoalPlanPageObjects.FamilyGoalPlanLink()); WebDriverUtils.ClickAction(FamilyGoalPlanPageObjects.FamilyGoalCreatePlanLink()); }
public static void ProgramOverviewNavigation() { ProgramsSearchAction.ProgramSearchAction(); WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramOverviewNavigation()); }
public static IWebElement ProgramsServicesReferOutButton() { return(WebDriverUtils.WaitForElementByXpath("//app-header/section/div/div[1]/button")); }
public void Initialize() { _driver = WebDriverUtils.InitializeChromeDriver(); }
public static IWebElement ProgramsServicesReferOutHeader() { return(WebDriverUtils.WaitForElementByXpath("//*/app-household/app-create-program-service-referral/app-header/section/div/h1")); }
public void RedirectToLoginPageIfNotLoggedIn() { WebDriverUtils.GoTo(_driver, ""); Assert.AreEqual(Constants.UrlFor("/account/login?returnUrl=%2F"), _driver.Url); }
public static IWebElement FollowUpLink() { return(WebDriverUtils.WaitForElementByXpath("//mat-cell[5]/a")); }
public void LoginFailWhenInvalidCredentials() { WebDriverUtils.Login(_driver, "admin", "invalidpassword"); Assert.AreEqual(Constants.UrlFor("/account/login?returnUrl=%2F"), _driver.Url); Assert.IsTrue(_driver.FindElements(By.CssSelector(".text-danger")).Any(e => e.Text == "ユーザー名またはパスワードが不正です。")); }
public void AddScreenshot(string description) { WebDriverUtils.AddScreenshot(driver, description); }
public void RedirectToFileListWhenLoginSucceeded() { WebDriverUtils.LoginAsAdmin(_driver); Assert.AreEqual(Constants.UrlFor("/files/view"), _driver.Url); Assert.IsNotNull(_driver.Manage().Cookies.GetCookieNamed(".AspNetCore.Identity.Application")); }
public static IWebElement ClientTab() { return(WebDriverUtils.WaitForElementByCss("#navClients>span")); }
public static void IndividualOverview() { ClientSearchAction.SearchAction(); WebDriverUtils.ClickAction(IndividualOverviewPageObjects.IndividualID()); }
public static IWebElement AddAddresslink() { return(WebDriverUtils.WaitForElementByXpath("//app-physical-address-read/section/div/header/button/i")); }
public static IWebElement ProgramsServiceslink() { return(WebDriverUtils.WaitForElementByXpath("//*/app-left-nav/aside/nav/a[3]/span")); }
public static void PartnerNavigation() { ProgramAdmin.ProgramsNavigation(); WebDriverUtils.ClickAction(PartnerPageObjects.PartnerLink()); }
public static IWebElement ProgramsServicesHeader() { return(WebDriverUtils.WaitForElementByXpath("//app-programs-index/div/app-header/section/div/h1")); }
public static void HouseHoldOverview() { ClientSearchAction.SearchAction(); WebDriverUtils.ClickAction(HouseHoldOverviewPageObjects.ClientName()); }
public static void AddNewIncome() { HouseHoldOverviewAction.HouseHoldOverview(); WebDriverUtils.ClickAction(IncomePageObjects.AddIncomeLink()); }