Why is the timeout period for verifyElementPresent mandatory?

Hi, I’m wondering if is it possible to remove the timeout element from the WebUI.verifyElementPresent function, or if there is a decent workaround?

I looked around and found a few posts/threads from a few years ago but not sure if it’s possible now, or if someone has come up with a better solution since.

In my scenario, there’s no need to wait around because the element is either there or it’s not. If it was something that appeared later, you’d obviously use WebUI.waitForElementPresent.


Your test code runs at ~native cpu speed. Browsers code (JavaScript, HTML renderer, CSS) does not.

It’s wise to wait and allow the browser and page code time to “catch up”.