Thread.Sleep() - causes the current thread to suspend execution for a specified period. This is an efficient means of making processor time available to the other threads of an application or other applications that might be running on a computer system.
Note that if there is another thread defined then it can catch InterruptedException.
Example:
Thread.sleep(3000); //3 seconds
Opeartion 1
Thread.sleep(3000);
Opeartion 2
Thread.sleep(3000);
Opeartion 3
Selenium.setSpeed()- used to set execution speed in milliseconds. Will apply a delay before Selenium operation takes place. It is done only once.
Example:
Selenium.setSpeed("3000");
Opeartion 1 // Selenium operation
Opeartion 2
Opeartion 3
No comments:
Post a Comment