Basically I am using java to write my framework. I tried to handle this situation using TRY-CATCH, in which in TRY i try to find the element , if the element is present then well and good but if not then the exception is thrown and then the CATCH block first scrolls and then again tries to find the element. and in FINALLY I am writing the action to be performed on the found element.
I wanted to know if there is any another efficient pre-constructed methods to handle this situation.