What is the difference between setSpeed() and sleep() methods?

These methods will delay the speed of the execution.

Thread.sleep(): The current thread will stop for a specified period of time. It only waits once when the command is given. It takes only a single argument that is Integer format.

set sleep(): This command will stop the execution for every selenium command. This command is used only for demonstration purposes and also for a slow web application.

Leave a Reply