|
Hi Tarun
we are looking to handle exception thrown by isdisplay() method using selenium assertions.
if any method throws exception it should fail and show description statement in testng report. Also continue the our test case execution.
As per your 7th training session , soft assertions are supports.
can i use soft assertions as below?
customVerification.verifyTrue("Searchpage is displayed", driver.findElement(
By.xpath("//h1[contains(@class,'sn-tab-h1')]"))
.isDisplayed());
one more question:
Do i have to append customverification java file to my frame work or any exiting jar file provides this feature?
|