11

I am using Selenium WebDriver with Java. I want to control the speed of the execution of running the test cases.

The WebDriver doesn't have a method setSpeed() (Selenium RC has this method). Also I am not using a selenium server.

WebDriver driver = new FirefoxDriver();
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
Mohamed Ramadan
  • 475
  • 2
  • 7
  • 15

1 Answers1

7

If you are looking to explicitly control the 'speed' of the execution using methods,I have found this link wherein a similar issue is discussed/answered.

Apart from that I think , that if we are looking at speed with efficiency/accuracy in mind, we should follow good practices as in efficient locator strategies , among others.

Or in some cases wherein if we have to interact with Ajax, we could use wait judiciously.More info here.

Hope this is useful :).

Community
  • 1
  • 1
self-babush
  • 585
  • 3
  • 13
  • Another link to visit: http://stackoverflow.com/questions/11154982/is-there-any-method-in-webdriver-with-java-for-controlling-speed-of-browser – Ripon Al Wasim Sep 16 '15 at 10:50