Exemplo n.º 1
0
        public void WhenISelectAddToCartButton()
        {
            ShopItemPage   shopItemPage   = new ShopItemPage();
            AddToCartPopUp addToCartPopUp = new AddToCartPopUp();

            shopItemPage.AddToCart();
        }
Exemplo n.º 2
0
        public void WhenIClickOnProceedToCheckoutButton()
        {
            AddToCartPopUp addToCartPopUp = new AddToCartPopUp();

            addToCartPopUp.ClickProceed();

            //string Url = Driver.FindElement(By.CssSelector("#layer_cart > div.clearfix > div.layer_cart_cart.col-xs-12.col-md-6 > div.button-container > a")).GetAttribute("href");
            //Driver.Navigate().GoToUrl(Url);
            //Wait.Until(condition => condition.FindElement(By.Id("cart_title")));
        }
Exemplo n.º 3
0
        public void WhenItemIsSuccessfullyAddedToCart()
        {
            AddToCartPopUp addToCartPopUp = new AddToCartPopUp();

            Wait.Until(condition => condition.FindElement(By.XPath("//*[@id='layer_cart']")));
        }