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));
 }
 public MainPage Exist()
 {
     AllProducts.Click();
     TestProduct.Click();
     Assert.AreEqual(ProductName.GetAttribute("value"), "Test Product");
     Assert.AreEqual(CategoryID.FindElement(By.XPath("//option[. = 'Seafood']")).GetAttribute("text"), "Seafood");
     Assert.AreEqual(SupplierID.FindElement(By.XPath("//option[. = 'Leka Trading']")).GetAttribute("text"), "Leka Trading");
     Assert.AreEqual(UnitPrice.GetAttribute("value"), "111,0000");
     Assert.AreEqual(QuantityPerUnit.GetAttribute("value"), "222");
     Assert.AreEqual(UnitsInStock.GetAttribute("value"), "333");
     Assert.AreEqual(UnitsOnOrder.GetAttribute("value"), "444");
     Assert.AreEqual(ReorderLevel.GetAttribute("value"), "555");
     Home.Click();
     logoutField.Click();
     return(new MainPage(driver));
 }