public void Test1()
        {
            login.Login(driver);
            BillingPage billing = new BillingPage(driver);

            billing.firstName("Amith");
            billing.lastName("singh");
            billing.email("*****@*****.**");
            billing.phone("1212131412");
            billing.addressLine1("agagdh");
            billing.addressLine2("jhjskfhghgh");
            billing.city("city");
            billing.state("Alaska");
            billing.postal("12121-2121");
            billing.itemnumber(3);
            billing.comment("Please Add some comments here");
            billing.submit();
        }
        private BillingPage GetBillingPagePreview(BillingPage BillingPageActive, BillingPagePreview preview, int lastIdBillingPage, int lastIdBenefict, int lastIdIncrementBenefit, int lastIdLab)
        {
            var BillingPagePreview = new BillingPage
            {
                BillingPageCustomValue = $"BillingPage_{lastIdBillingPage}",
                BillingPageTitle       = "Facturación en línea",
                BillingPageActive      = true,
                BillingPageCreatedDate = DateTime.Now,
                BenefitSection         = new BenefitSection
                {
                    BenefitSectionCustomValue = $"BenefitSection_{++lastIdBenefict}",
                    BenefitSectionDiv         = preview.BeneficiosTarjeta ?? BillingPageActive.BenefitSection.BenefitSectionDiv,
                    BenefitSectionParagraph   =
                        preview.BeneficiosTarjetaParrafo ?? BillingPageActive.BenefitSection.BenefitSectionParagraph,
                    BenefitSectionImage   = preview.BeneficiosTarjetaImagen ?? BillingPageActive.BenefitSection.BenefitSectionImage,
                    BenefitSectionImageXS = preview.BeneficiosTarjetaImagenXs ?? BillingPageActive.BenefitSection.BenefitSectionImageXS,
                },
                IncrementBenefitSection = new IncrementBenefitSection
                {
                    IncrementBenefitSectionCustomValue = $"IncrementBenefitSection_{++lastIdIncrementBenefit}",
                    IncrementBenefitSectionDiv         =
                        preview.AumentaBeneficiosTarjeta ??
                        BillingPageActive.IncrementBenefitSection.IncrementBenefitSectionDiv,
                    IncrementBenefitSectionImage1 = preview.AumentaBeneficiosImagen1 ??
                                                    BillingPageActive.IncrementBenefitSection.IncrementBenefitSectionImage1,
                    IncrementBenefitSectionImage2 = preview.AumentaBeneficiosImagen2 ??
                                                    BillingPageActive.IncrementBenefitSection.IncrementBenefitSectionImage2,
                },
                LabSection = new LabSection
                {
                    LabSectionCustomValue = $"LabSection_{++lastIdLab}",
                    LabSectionTitle       = preview.TituloLaboratorios ?? BillingPageActive.LabSection.LabSectionTitle,
                    ImageSections         = Utils.ConvertToImageSectionList(preview.ImagesLab),
                },
                HeadImages = Utils.ConvertToImageSectionList(preview.Encabezado),
            };

            return(BillingPagePreview);
        }
Beispiel #3
0
 public BillingStep(IWebDriver driver, FeatureContext featureContext) : base(driver, featureContext)
 {
     _billingPage        = new BillingPage(driver, featureContext);
     _customBillingPage  = new CustomBillingPage(driver, featureContext);
     _exportBillingFrame = new ExportBillingFrame(driver, featureContext);
 }