Exemplo n.º 1
0
        public static ProductsPage CreateProduct(Products product, IWebDriver driver)
        {
            HomePage      homePage      = new HomePage(driver);
            ProductsPage  productsPage  = homePage.AllProductView();
            CreateNewPage createNewPage = productsPage.createNewButtonClick();

            productsPage = createNewPage.InputProduct(product);
            return(new ProductsPage(driver));
        }
Exemplo n.º 2
0
        public void WhenIEnterTheProductInfoInTheField(string nameProduct, string costUnitPrice, string numberQuantityPerUnit, string numberUnitsInStock, string unitsOnOrder)
        {
            CreateNewPage createProductPage = new CreateNewPage(driver);

            createProductPage = createProductPage.InputProduct(new Products(nameProduct, costUnitPrice, numberQuantityPerUnit, numberUnitsInStock, unitsOnOrder));
        }