public static AllProductsPage CreateProduct(Products products, IWebDriver driver) { MainPage mainPage = new MainPage(driver); AllProductsPage allProductsPage = mainPage.OpenProducts(); ProductEditingPage productEditingPage = allProductsPage.OpenProductCreator(); productEditingPage.SetProductName(products); productEditingPage.SetCategory(products); productEditingPage.SetSupplier(products); productEditingPage.SetUnitPrice(products); productEditingPage.SetQuantityPerUnit(products); productEditingPage.SetUnitsInStock(products); productEditingPage.SetUnitsOnOrder(products); productEditingPage.SetReorderLevel(products); return(productEditingPage.CreateConfirmation()); }
public void WhenIEnterProductName(string product_name) { ProductEditingPage productEditingPage = new ProductEditingPage(driver); productEditingPage.SetProductName(new Products(product_name, null, null, null, null, null, null, null)); }