Generally speaking, when using a function like “verifyElementPresent”, the tester would like to evaluate the presence of an element at the time the function is called.
As such, the current implementation:
WebUI.verifyElementPresent(TestObject to, int timeout)
should not include a timeout. This could be handled in either of the following ways:
1.) Remove the timeout implementation completely.
2.) Allow for the timeout parameter to accept ‘0’. Currently, if the tester gives a value of ‘0’, it appears that the studio defaults back to 30 seconds:
The current workaround is to set timeout = 1. Obviously, this is not ideal.