Is there any method in WebDriver with Java for controlling speed of browser?

Ripon Al Wasim picture Ripon Al Wasim · Jun 22, 2012 · Viewed 17.6k times · Source

When I use Selenium RC there is a method setSpeed as:

selenium.setSpeed("500");

What is the way to control speed of browser in Selenium WebDriver?

Answer

JimEvans picture JimEvans · Jun 22, 2012

There is no longer any way to control the speed of each "step" in Selenium WebDriver. At one time, there was a setSpeed() method on the Options interface (in the Java bindings; other bindings had similar constructs on their appropriately-named objects), but it was deprecated long, long ago. The theory behind this is that you should not need to a priori slow down every single step of your WebDriver code. If you need to wait for something to happen in the application you're automating, you should be using an implicit or explicit wait routine.