Java Selenium WebDriver code to implement Verify instead of Assert

前端 未结 3 1125
没有蜡笔的小新
没有蜡笔的小新 2021-01-21 14:03

I am not able to understand how to write Java code to implement Verify. I am always seeing the code to implement Assert but not for Verify

3条回答
  •  梦谈多话
    2021-01-21 14:17

    Even if TestNG does not support verification directly you can create soft assertions which will act like verifications. Kindly check this link: http://seleniumexamples.com/blog/guide/using-soft-assertions-in-testng/

提交回复
热议问题