title: WebDriver: How to optimize a wait statement inside try catch
body: <p>there is a web element which comes randomly and I handled it using try catch using a wait statement in both try as well as catch. However the code is working perfectly fine, I just need to know if there is a way to optimize it in order to decrease the execution time as it is taking too long to execute?</p>