Sunday, 10 May 2015

What is the Thread.sleep() equivalent method in C#.Net?

In Java, we have Thread.sleep(5000) method which makes thread wait for specific time.

In C#.net, we can use below statement to sleep for few seconds.

System.Threading.Thread.Sleep(5000);

Note that time is given in milliseconds. So above code will make thread wait for 5 seconds.

What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com

No comments:

Post a Comment

Buy Best Selenium Books

About Me

My photo

Self-motivated software professional