Example #1
0
        public void PerformPurchase(BillingInformation billingInfo, ShippingInformation shippingInfo)
        {
            ////shoppingCartPage.ChangeQuantity(1);
            shoppingCartPage.Checkout.Click();
            shoppingCartPage.AssertCheckoutButtonIsEnabled();
            shoppingCartPage.AssertCheckoutButtonIsEnabled();

            billingInformationPage.Asserter.AssertCityLabel();
            billingInformationPage.Asserter.AssertFirstNameLabel();
            billingInformationPage.Asserter.AssertLastNameLabel();
            billingInformationPage.FillBillingInformation(billingInfo.FirstName, billingInfo.LastName, billingInfo.City);
            billingInformationPage.FillShippingInformation(shippingInfo.FirstName, shippingInfo.LastName, shippingInfo.City);
            billingInformationPage.Map.ProceedToPayment.Click();
        }