示例#1
0
        public void AcceptManualOffer()
        {
            var mOffer = AccessExcelData.GetTestData <CustomOffer>("TestName", "Sanity", "CustomOffer", CRMConstants.OfferXlsxFilename);

            this.offerMainPage.NewOffer.Click();
            this.customOffer.NavigateTo();
            this.customOffer.CreateCustomOfferOne(mOffer);
            this.customOffer.AcceptOfferOne();

            Thread.Sleep(1000);
            LoanParametersPage loanParamPage = new LoanParametersPage(this.Driver);

            loanParamPage.AssertApplicationPage();
            loanParamPage.AssertAcceptedOfferParameters(mOffer);
        }
示例#2
0
        public void AcceptAutomaticOfferWithoutJD()
        {
            var aOfferCl = AccessExcelData.GetTestData <AutoOffer>("TestName", "Sanity", "AutoOffer", CRMConstants.OfferXlsxFilename);

            this.offerMainPage.NewOffer.Click();
            this.autoOffer.CheckClientPid(aOfferCl);
            this.autoOffer.GoToAutoOfferPage();
            this.autoOffer.FilloutClientData(aOfferCl);

            this.autoOffer.CalculateOfferts();

            CustomOffer AcceptedOffer = this.autoOffer.GetOffer("RequestedParams");

            this.autoOffer.AcceptOffer("RequestedParams");
            this.autoOffer.SigningUpHand();

            LoanParametersPage loanParamPage = new LoanParametersPage(this.Driver);

            loanParamPage.AssertApplicationPage();
            loanParamPage.AssertAcceptedOfferParameters(AcceptedOffer);
        }