Exemple #1
0
        public static ProductsPage AddProduct(Product pr, IWebDriver driver)
        {
            ProductsPage productsPage = new ProductsPage(driver);
            ProductsPage addPage      = productsPage.AddProduct(pr);

            return(addPage.ClickButton());
        }
 public void CheckAddProduct()
 {
     MakeScreenshotWhenFail(() =>
     {
         HomePage HomePage         = new HomePage();
         ProductsPage productsPage = HomePage.GoToPage().GoWithMenuToProductPage();
         productsPage.AddProduct(ProductCreator.WithName());
         CartPage cartPage = productsPage.GoToCartPage();
         Assert.IsTrue(cartPage.CheckProductIsCart(ProductCreator.WithName()));
     });
 }