How to continue execution when Assertion is failed

前端 未结 5 1546
小鲜肉
小鲜肉 2020-11-28 12:42

I am using Selenium RC using Java with eclipse and TestNG framework. I have the following code snippet:

assertTrue(selenium.isTextPresent(\"Please enter Emai         


        
5条回答
  •  醉酒成梦
    2020-11-28 13:33

    Change your assertions to verifications:

    verifyTrue(selenium.isTextPresent("Please enter Email ID"));
    verifyTrue(selenium.isTextPresent("Please enter Password"));
    

提交回复
热议问题