How do I sleep in Selenium?
If you want to put the selenium to sleep for 20 seconds, use the following code: sleep(20000); The Sleep() method does not care if the element is present or not; it simply sleeps for the specified amount of time. A static wait is also known as a blind wait or a dead wait.