I am new to web driver and I wrote a selenium script for web application which contains backbone.js and select2.
I used to get NosuchElementException and Element is not clickable exceptions often. So I have decided to script as below, - before clicking on any element, it will wait for existence of element using explicit wait. i.e before clicking any element , it will wait until the element is loaded.
Is it best practice to wait for each element before clicking?