public void Test3CheckProduct() { pageCheckProduct = new CheckProductPage(driver); pageCheckProduct.clickAllProd(); Product prod = pageCheckProduct.getTextElement(product); Assert.AreEqual(prod.inNameVal, product.inNameVal); Assert.AreEqual(prod.inQuantityVal, product.inQuantityVal); Assert.AreEqual(prod.inUnitInStockVal, product.inUnitInStockVal); Assert.AreEqual(prod.inUnitsOnOrderVal, product.inUnitsOnOrderVal); Assert.AreEqual(prod.inReorderLevelVal, product.inReorderLevelVal); }
public Product LoginAndCheckProduct(Login login, Product product, IWebDriver driver) { LoginPage loginPage = new LoginPage(driver); loginPage.loginIn(login); CheckProductPage checkProduct = new CheckProductPage(driver); checkProduct.clickAllProd(); Product prod = checkProduct.getTextElement(product); return(prod); }
public void Test3CheckProduct() { pageThree = new CheckProductPage(driver); pageThree.clickAllProd(); pageThree.getTextElement(); Assert.AreEqual(pageThree.inNameText, inNameVal); Assert.AreEqual(pageThree.inUnitPriceText, "10000,0000"); Assert.AreEqual(pageThree.inQuantityText, inQuantityVal); Assert.AreEqual(pageThree.inUnitInStockText, inUnitInStockVal); Assert.AreEqual(pageThree.inUnitsOnOrderText, inUnitsOnOrderVal); Assert.AreEqual(pageThree.inReorderLevelText, inReorderLevelVal); Assert.AreEqual(pageThree.checkDiscontText, "True"); }