Beispiel #1
0
 /// <summary>
 /// Removes all ticket from the cart. Needs previous login
 /// </summary>
 public void DeleteAllTicketFromCart_Front()
 {
     _driverCover.NavigateToUrl(_driverCover.BaseUrl + "en/carts/");
     CartObj cart = new CartSiteObj(_driver);
     cart.DeleteAllTickets();
 }
Beispiel #2
0
        /// <summary>
        /// Being in the cart method proceeds to checkout and applies a coupon
        /// </summary>
        /// <param name="code"></param>
        public CheckoutObj ApplyCouponInCart_Web(string code)
        {
            CartObj cart = new CartSiteObj(_driver);
            cart.ClickProceedToCheckoutButton();
            CheckoutObj checkout = new CheckoutObj(_driver);
            checkout.ApplyCoupon(code);

            return checkout;
        }