Styrow.dev
Question 33 of 82

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

Question

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

Answer

Both sleep() and setSpeed() are used to delay the execution speed.

setSpeed(): It set up speed that will apply a delay time before every Selenium operation.

sleep(): It set up wait only for once when called in our Selenium script.


šŸ“² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.