internal void CreateCustomOfferThree(CustomOffer offer)
 {
     this.SelectByText(this.Product_OfferThree, offer.Product);
     this.SelectByText(this.LoanAmount_OfferThree, offer.LoanAmount);
     this.SelectByText(this.Rate_OfferThree, offer.Rate);
     Assert.IsTrue(this.Payment_OfferThree.Text.Equals(offer.Payment));
 }
 public void AssertAcceptedOfferParameters(CustomOffer offer)
 {
     Assert.IsTrue(this.ProductType.SelectedOption.GetAttribute("text").Equals(offer.Product), "Wrong Product. Must be " + offer.Product);
     Assert.IsTrue(this.LoanAmount.SelectedOption.GetAttribute("text").Equals(offer.LoanAmount), "Wrong Amount Must be " + offer.LoanAmount);
     Assert.IsTrue(this.LoanRate.SelectedOption.GetAttribute("text").Equals(offer.Rate), "Wrong Rate. Must be " + offer.Rate);
     Assert.IsTrue(this.MonthlyAmount.GetAttribute("value").Equals(offer.Payment), "Wrong Payment. Must be " + offer.Payment);
 }
Exemple #3
0
        internal CustomOffer GetOffer(string offerType)
        {
            CustomOffer offer = new CustomOffer();

            // offer.LoanAmount = this.UpsellAmount.Text;
            offer.Product    = FindElement(By.XPath(string.Format("//*[@id='offers-table']//*[contains(text(),'{0}')]/../div[2]", offerType))).Text;
            offer.LoanAmount = FindElement(By.XPath(string.Format("//*[@id='offers-table']//*[contains(text(),'{0}')]/../../div[2]", offerType))).Text;
            offer.Rate       = FindElement(By.XPath(string.Format("//*[@id='offers-table']//*[contains(text(),'{0}')]/../../div[3]", offerType))).Text;
            offer.Payment    = FindElement(By.XPath(string.Format("//*[@id='offers-table']//*[contains(text(),'{0}')]/../../div[4]", offerType))).Text;

            return(offer);
        }
Exemple #4
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);
        }