In selenium,If Element is not exists then its takes alot of time to Execute next line of code : Iam Ravi ,Working  as Automation Engineer using selenium, I have  found one problem with selenium,If Element is not exists in the HTML page or DOM its take a lot of time to find that element more than 5 min after 5 mins its executes next line of code I want if that element not exists in the page it immediately  go to the next line of code but it takes more time.In Some cases element exists in page so I did if element exist then come this code otherwise go to else code I have a lot of  cases like these so it takes a lot of take to execute complete code,I tried with all possible ways like list ,try and Catch but unable to reduce time,Can you please give any solution for this in selenium.

  please give solution for that above problem.

Thanks,
Ravikiran.