Пример #1
0
        public void VerifyPrepaymentAmountInPrepaymentIsEditable()
        {
            try
            {
                test = extent.CreateTest("VerifyPrepaymentAmountInPrepaymentIsEditable").Info("Test Started");
                DebtSummaryPage debt        = new DebtSummaryPage(BaseTest.driver);
                LoanDetailsPage loandetails = new LoanDetailsPage(BaseTest.driver);
                debt.ClickFundATabDebt();
                debt.ClickdebtSummary();
                debt.NavigateToLoanDetails();
                loandetails.EditPrepayment();

                Boolean PreapaymentValue = loandetails.EditAndUpdatePrepaymentAmountBoolValue();
                Assert.IsTrue(PreapaymentValue == true, "Prepayment amount is not editable");

                Boolean NotesValue = loandetails.EditAndUpdatePrepaymentNotesBoolvalue();
                Assert.IsTrue(NotesValue == true, "Prepayment Notes is not editable");

                Boolean DateValue = loandetails.EditAndUpdatePrepaymentDatePickerBoolvalue();
                Assert.IsTrue(DateValue == true, "Prepayment date is not editable");

                Boolean EBAPNotes = loandetails.EditAndUpdatePrepaymentEBAPBoolvalue();
                Assert.IsTrue(EBAPNotes == true, "Prepayment EBAP is not editable");

                Boolean OLBPPNotes = loandetails.EditAndUpdatePrepaymentOLBPPBoolvalue();
                Assert.IsTrue(OLBPPNotes == true, "Prepayment OLBPP is not editable");

                Boolean EFAPPNotes = loandetails.EditAndUpdatePrepaymentEFABoolvalue();
                Assert.IsTrue(EFAPPNotes == true, "Prepayment OLBPP is not editable");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }