示例#1
0
        public void VisitWebsiteArriveAtHomePage()
        {
            //Given i am using a web browser

            //When i navigate to the thinkmoney website

            //Then i see the thinkmoney homepage
            HomePage homePage = new HomePage(webDriver);

            Assert.True(webDriver.Url == Configuration.Get("HomePageUrl"));
            Assert.True(homePage.PageHeaderText == AcceptanceTestData.Get("homePageText"));
        }
示例#2
0
        public void ClickLoginSeeManageYourMoneyPage()
        {
            //Given i am on the thinkmoney homepage

            //When i click the login button
            HomePage.Login(webDriver);

            //Then i see the Manage Your Money Page
            ManageYourMoneyPage manageYourMoneyPage = new ManageYourMoneyPage(webDriver);

            Assert.True(webDriver.Url == AcceptanceTestData.Get("manageYourMoneyURL"));
            Assert.True(manageYourMoneyPage.PageHeaderText == AcceptanceTestData.Get("manageYourMoneyText"));
        }
示例#3
0
        public void ClickContinueToLoginSeeLoginPage()
        {
            //Given i am on the Manage your money homepage
            HomePage.Login(webDriver);

            //When i click the Continue To Login button
            ManageYourMoneyPage.ContinueToLogin(webDriver);
            Helpers.SwitchToTab(webDriver, "Last");

            //Then i see the Login Page
            Assert.Contains(AcceptanceTestData.Get("partialLoginURL"), webDriver.Url);
            LoginPage loginPage = new LoginPage(webDriver);

            Assert.True(loginPage.PageHeaderText == AcceptanceTestData.Get("logInText"));
            Assert.True(webDriver.Title == AcceptanceTestData.Get("logInTitle"));
            Assert.True(loginPage.Password.Displayed && loginPage.Password.Enabled);
            Assert.True(loginPage.Username.Displayed && loginPage.Username.Enabled);
        }