|
Hi tarun,
I want to user assertions in my projects. when i am using like below
Assert.assertTrue(driver.findElement(By.xpath("//a[@id='buttonshowmenu3333333']")).isDisplayed(),"TOC web element is not found");
Exception is throwing and test case is failed because of invalid xpath. But i want to show error message that i mentioned in the 2nd parameter in Testngresults.xml.
Please do need your help.....
Thanks
sreekumar
|