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)); }