public static void AdminUserNavigationAction()
 {
     SystemAdminOrganization.OrganizationNavigation();
     WebDriverUtils.ClickAction(UserPageObjects.UserLink());
 }
 public static void CreateUserAction()
 {
     SystemAdminUsers.AdminUserNavigationAction();
     WebDriverUtils.ClickAction(UserPageObjects.CreateNewUserLink());
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 5
0
 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"));
 }
Exemplo n.º 8
0
 public void TearDown()
 {
     WebDriverUtils.Quit();
 }
Exemplo n.º 9
0
 public static void PartnerOverviewNavigation()
 {
     PartnerAdminSearch.PartnerSearchAction();
     WebDriverUtils.ClickAction(PartnerPageObjects.ProgramDetailsLink());
 }
 public static void TransmittalOverviewNavigation()
 {
     SearchTransmittalAction.TransmittalSearchAction();
     WebDriverUtils.ClickAction(TransmittalPageObjects.TransmittalOverviewNavigaterLink());
 }
Exemplo n.º 11
0
 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());
 }
Exemplo n.º 14
0
 public static void ProgramOverviewNavigation()
 {
     ProgramsSearchAction.ProgramSearchAction();
     WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramOverviewNavigation());
 }
 public static IWebElement ProgramsServicesReferOutButton()
 {
     return(WebDriverUtils.WaitForElementByXpath("//app-header/section/div/div[1]/button"));
 }
Exemplo n.º 16
0
 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"));
 }
Exemplo n.º 18
0
 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"));
 }
Exemplo n.º 20
0
 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 == "ユーザー名またはパスワードが不正です。"));
 }
Exemplo n.º 21
0
 public void AddScreenshot(string description)
 {
     WebDriverUtils.AddScreenshot(driver, description);
 }
Exemplo n.º 22
0
 public void RedirectToFileListWhenLoginSucceeded()
 {
     WebDriverUtils.LoginAsAdmin(_driver);
     Assert.AreEqual(Constants.UrlFor("/files/view"), _driver.Url);
     Assert.IsNotNull(_driver.Manage().Cookies.GetCookieNamed(".AspNetCore.Identity.Application"));
 }
Exemplo n.º 23
0
 public static IWebElement ClientTab()
 {
     return(WebDriverUtils.WaitForElementByCss("#navClients>span"));
 }
Exemplo n.º 24
0
        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"));
 }
Exemplo n.º 27
0
 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"));
 }
Exemplo n.º 29
0
        public static void HouseHoldOverview()

        {
            ClientSearchAction.SearchAction();
            WebDriverUtils.ClickAction(HouseHoldOverviewPageObjects.ClientName());
        }
Exemplo n.º 30
0
 public static void AddNewIncome()
 {
     HouseHoldOverviewAction.HouseHoldOverview();
     WebDriverUtils.ClickAction(IncomePageObjects.AddIncomeLink());
 }