Ejemplo n.º 1
0
        public void SearchBar()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");

            AccountSummaryPage page = new AccountSummaryPage();
        }
Ejemplo n.º 2
0
        public void OnlineStatement()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");

            AccountSummaryPage page = new AccountSummaryPage();
        }
Ejemplo n.º 3
0
        public void PurchaseForeignCurrency()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");

            AccountSummaryPage page = new AccountSummaryPage();
        }
Ejemplo n.º 4
0
        public void AccountSummary()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");
            AccountSummaryPage page = new AccountSummaryPage();

            page.btnSavings.Click();
            page.CheckingOption();
        }
Ejemplo n.º 5
0
        public void FindTransaction()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");
            AccountSummaryPage page = new AccountSummaryPage();

            page.btnAccountActivity.Click();
            page.btnFindTransactions.Click();
            Thread.Sleep(1000);
            page.PopulateFindTransactionsForm("Description", "2019-03-13", "2019-08-23", "500.00", "750.00", "Deposit");
            page.btnFind.Click();
            Thread.Sleep(5000);
        }
Ejemplo n.º 6
0
        public void PayBill()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");

            AccountSummaryPage page = new AccountSummaryPage();

            page.btnBillPay.Click();

            page.PopulatePaymentToSavedPayees("Bank of America", "Savings", "500.00", "2019-03-29", "Description for testing");

            page.btnPay.Click();

            Assert.IsTrue(page.msgPayment.Displayed);
            Assert.AreEqual(page.msgPayment.Text, "The payment was successfully submitted.");
        }
Ejemplo n.º 7
0
        public void FindByDateAndType()
        {
            var accontsummaryPage = new AccountSummaryPage();

            PageFactory.InitElements(driver, accontsummaryPage);
            accontsummaryPage.AccountActivityLink.Click();

            var accountactivityshowPage = new AccountActivity_Show();

            PageFactory.InitElements(driver, accountactivityshowPage);
            accountactivityshowPage.FindTransactionsLink.Click();

            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
            var accountactivityfindPage             = new AccountActivity_Find();

            PageFactory.InitElements(driver, accountactivityfindPage);
            accountactivityfindPage.FromDate.SendKeys("2012-01-01");
            accountactivityfindPage.ToDate.SendKeys("2012-12-31");
            accountactivityfindPage.FindButton.Click();
        }
Ejemplo n.º 8
0
        public void AddNewPayee()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");

            AccountSummaryPage page = new AccountSummaryPage();

            page.btnBillPay.Click();
            page.btnAddNewPayee.Click();

            //Assert.AreEqual(page.lblHeaderAddNewPayee.Text, "Who are you paying?");

            Thread.Sleep(1000);
            page.PopulateAddNewPayeeForm("Dejan Marjanovic", "Gabelina 25", "Savings", "Stalna musterija");

            page.btnAddPayee.Click();

            Assert.IsTrue(page.msgAddNewPayee.Displayed);
            Assert.AreEqual(page.msgAddNewPayee.Text, "The new payee Dejan Marjanovic was successfully created.");
        }
Ejemplo n.º 9
0
        public void TransferFunds()
        {
            LoginPageObject pageLogin = new LoginPageObject();

            pageLogin.Login("username", "password");

            AccountSummaryPage page = new AccountSummaryPage();

            page.btnTransferFunds.Click();
            page.FillTransferMoneyAndMakePayment("Savings(Avail. balance = $ 1000)", "Checking(Avail. balance = $ -500.2)", "500.00", "Need money for Udemy Course");
            page.btnContinue.Click();
            page.btnContinue.Click();

            Assert.IsTrue(page.msgExpected.Displayed);
            Assert.AreEqual(page.msgExpected.Text, "Transfer Money & Make Payments - Confirm");

            page.btnAnotherTransfer.Click();
            page.FillTransferMoneyAndMakePayment("Brokerage(Avail. balance = $ 197)", "Credit Card(Avail. balance = $ -265)", "350.00", "New description text");
            page.btnContinue.Click();
            page.btnContinue.Click();

            Assert.IsTrue(page.msgExpected.Displayed);
            Assert.AreEqual(page.msgExpected.Text, "Transfer Money & Make Payments - Confirm");
        }