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 WhenIChooseSupplier(string supplier) { ProductEditingPage productEditingPage = new ProductEditingPage(driver); productEditingPage.SetSupplier(new Products(null, null, supplier, null, null, null, null, null)); }