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 WhenIEnterUnitPrice(string unit_price) { ProductEditingPage productEditingPage = new ProductEditingPage(driver); productEditingPage.SetUnitPrice(new Products(null, null, null, unit_price, null, null, null, null)); }