You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is using the Thread.sleep() for all kinds of delay. Doesn't this affect the performance? What's the idea behind the Thread.sleep() usage here ? Please correct me as I am new to the selenium stuff...
The text was updated successfully, but these errors were encountered:
You don't want to use static sleep commands in your tests, you should
always try to use wait conditions instead. These are dynamic, and will
only wait until the criteria has passed before continuing. But inside the
framework, sleep commands have to be used as its the only real way to make
a thread wait. If you look inside the selenium-webdriver code you will see
sleep commands there as well. But like all rules, there's always
exceptions There are instances where a static sleep can be useful.
However typically you want to wait for some condition instead ofusing a
sleep whenever possible.
I found after googling about time delays that we should be using Thread.sleep in the worst case but I found that https://github.com/ProtoTest/ProtoTest.Golem/blob/master/ProtoTest.Golem/Core/Common.cs#L185
is using the Thread.sleep() for all kinds of delay. Doesn't this affect the performance? What's the idea behind the Thread.sleep() usage here ? Please correct me as I am new to the selenium stuff...
The text was updated successfully, but these errors were encountered: