예제 #1
0
        public void AddToCart()
        {
            landingPage.CookieBannerButton().SendKeys(Keys.Enter);

            pageAssert.AssertGlobal(); //assert

            landingPage.CartIcon().Click();
            pageAssert.AssertKundvagn(); //assert

            landingPage.AddProductArtNr().Click();

            landingPage.InputFieldAddProductArtNr().Click();
            landingPage.InputFieldAddProductArtNr().SendKeys("52558555");

            landingPage.ProductQuantityList().Click();
            landingPage.ProductQuantityList().Click();
            landingPage.AddProductArtNrButton().Click();

            landingPage.LOGO().Click();
            landingPage.Products().Click();
            landingPage.ProductsFurniture().Click();
            landingPage.ProductsFurnitureTableAndDesks().Click();
            landingPage.BuyItem().Click();
            landingPage.ProductAddToCartButton().Click();
        }
예제 #2
0
        public void AvailableStore()
        {
            landingPage.CookieBannerButton().SendKeys(Keys.Enter);

            landingPage.Products().Click();
            landingPage.ProductsFurniture().Click();
            landingPage.ProductsFurnitureTableAndDesks().Click();
            landingPage.BuyItem().Click();
            landingPage.BuyItemAdd().Click();
            landingPage.ItemAddCheckBannerBuyList().Click();

            landingPage.MyBuyList().Click();
            landingPage.AvailableDepartmentStore().Click();
            pageAssert.AssertInkopTillganglig();  //assert funkar inte
        }