Our automation run may be significantly slowed. Because it is unstable and unreliable, the Thread.sleep () function is not suitable in automation scripts. When compared to the implicit and explicit wait times in Selenium, the time must be given in milliseconds.