Example #1
0
        public void GivenAUserHasAccounts(int p0)
        {
            var sideMenu = AccountPage.NavigateTo(driver).WaitUntilVisible()
                           .OpenSideMenu().WaitUntilVisible();

            sideMenu.ClickMenuItemByText("Login");

            var loginDialog = new LoginModal(driver).WaitUntilVisible();

            loginDialog.LoginUser("heaton");
        }
Example #2
0
        public void ThenIShouldSeeAccountsAndBalances(Table table)
        {
            var accountPage     = new AccountPage(driver).WaitUntilVisible();
            var accountInfoList = accountPage.GetAccountInfoList();

            var account0Info = accountInfoList.ElementAt(0).FindElements(By.CssSelector("div"));

            Assert.AreEqual(account0Info.Count, 3);
            AssertAccountInfoShouldMatchRow(account0Info, table.Rows.ElementAt(0));


            var account1Info = accountInfoList.ElementAt(1).FindElements(By.CssSelector("div"));

            Assert.AreEqual(account1Info.Count, 2);
            AssertAccountInfoShouldMatchRow(account1Info, table.Rows.ElementAt(1));
        }