예제 #1
0
        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);
        }
예제 #2
0
        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);
        }     
예제 #3
0
 public void SignIn_Test()
 {
     DoValidAction.SignIn(driver);
     Assert.AreEqual(Validation.DoValidation(driver,"signin validation"), "Hello, Rishi");
 }