What is the Best way to stop script for sometime

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

What is the Best way to stop script for sometime

Balakrishna
Hi All,

I am running the Scripts in multiple browsers and i need some delay in script for some of the steps. So, what will be the best way to do it ? as of now i am using Tread.Sleep() and it is working some times only.

Regards,
Krishna
Reply | Threaded
Open this post in threaded view
|

Re: What is the Best way to stop script for sometime

Balakrishna
can  any help me with this one asap. i am totally stuck with my testing.
Reply | Threaded
Open this post in threaded view
|

Re: What is the Best way to stop script for sometime

Prabhakar
In reply to this post by Balakrishna
You can use Implicit or Explicit wait.
You can study more about this here :
http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp