public void Search_Test() { DoValidAction.SerachProduct(driver); string validresult = driver.FindElement(By.XPath("//span[text()[contains(.,'Wireless Charger')]]")).Text; if(validresult.Contains("Wireless Charger")) { flag = true; } Assert.IsTrue(flag); }
public void SignOut_Test() { DoValidAction.SignOut(driver); string validresult = driver.FindElement(By.XPath("//*[text()[contains(.,'Email')]]")).Text; if (validresult.Contains("Email")) { flag = true; } Assert.IsTrue(flag); }
public void SignIn_Test() { DoValidAction.SignIn(driver); Assert.AreEqual(Validation.DoValidation(driver,"signin validation"), "Hello, Rishi"); }