public MainPage Add(string Product, string Price, string Quantity, string Stock, string Order, string Level) { AllProducts.Click(); CreateNew.Click(); ProductName.SendKeys(Product); CategoryID.FindElement(By.XPath("//option[. = 'Seafood']")).Click(); SupplierID.FindElement(By.XPath("//option[. = 'Leka Trading']")).Click(); UnitPrice.SendKeys(Price); QuantityPerUnit.SendKeys(Quantity); UnitsInStock.SendKeys(Stock); UnitsOnOrder.SendKeys(Order); ReorderLevel.SendKeys(Level); Confirm.Click(); return(new MainPage(driver)); }