To explain further, I am currently working with selenium and c#. My problem is, my tool runs very fast without waiting the element to be ready.
Thread.Sleep() is not advisable for instance.
The given time to wait is 2 secs. the element will be present in 1 or more secs. after the Thread.Sleep() so the code line is not reliable.
Or the element is present but still waiting to finish Thread.Sleep() so it is time consuming.
What I want is, if the element is found then no need to wait on the given time, and if not found at the given time then time out.