TestProject Forum
Powered by leading experts in the test automation community

What is the equivalent for Selenium explicit wait in TestProject?

Hi TestProject team,

I tried to find how to set an explicit wait in my test, but couldn’t. I’m trying to avoid using Thread.wait(), but can’t find other solution.

Thanks!

Hi garcia.felipe,

Thanks for reaching out! This is actually a pretty good questions.
In TestProject, we included this explicit wait option in our SDK. To use it, you need to use the driver:

driver.testproject().wait(TIME_IN_MILLISECONDS);

That way, you can set an explicit wait in your test without using Thread.sleep();