SeleniumJavaCourse
SeleniumJavaCourse copied to clipboard
How it is possible to flash or draw border when element is not found
@naveenanimation20
I tried in my code, If element xpath is wrong then it fails on findElement. Don't go into next line for flash or draw a border.
In Our framework, we take a screenshot on
@Override public void onTestFailure(ITestResult tr) { }
Now Consider if NoSuchElement ref error occurs then How ITestResult will identity the Element to draw a border.
I am not that much good in selenium or testNG. Can you please give me guideline to use flash and draw a border usecase. I am expecting to flash or draw a border when test case failed.