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)); }
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)); }