Esempio n. 1
0
        public void GivenThatIMOnTheEstimatorStartPage()
        {
            EmployerHash     = "M6PKPG";
            EmployeeLogin    = "******";
            EmployeePassword = "******";
            WebSite.SetEmployeeHash(EmployerHash);
            Console.WriteLine("Employer hash: M6PKPG");

            if (!WebSite.IsLocalhost && !WebSite.DoesPageTextContain("Your accounts"))
            {
                var loginPage = WebSite.NavigateToLoginPage();
                loginPage.LoginAsUser(EmployeeLogin, EmployeePassword);
            }

            if (!WebSite.IsLocalhost)
            {
                var loginPage = WebSite.NavigateToLoginPage();
                loginPage.LoginAsUser(EmployeeLogin, EmployeePassword);
            }

            if (!WebSite.IsLocalhost)
            {
                var accountHomepage = WebSite.NavigateToAccountHomePage();
                var financePage     = accountHomepage.OpenFinance();
                financePage.OpenFundingProjection();
            }

            WebSite.NavigateToEstimateFundsStartPage();
        }