Selenium, how do you control the speed of the test run?

Asked

Viewed 1,371 times

2

Creating automated C# testing using Selenium, I want to know how to control test execution speed?

  • What you have so far?:

  • So far I’m using Thread.Sleep to wait for the page to load before executing the next command!

2 answers

2

0

Use implicit waiting to control the flow of execution. Putting sleeps is not a good practice as it greatly burdens the test suite.

With implicit waits (wait until an element is displayed, wait for the page to load) no command will be executed before the context is ready.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.