Mohamed Ramadan
Mohamed Ramadan

Reputation: 475

Selenium WebDriver- How to control the speed of running the test cases

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();

Upvotes: 11

Views: 23027

Answers (1)

self-babush
self-babush

Reputation: 585

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 :).

Upvotes: 7

Related Questions