Forum Discussion
What happens when you set the Timeout other-then 0 like 100 or 500?
Hi Shankar,
This does not happen when I set the time out to other values (E.g time out = 100). However, action will take a few seconds before returning "false" when this control does not appear. Value of auto-wait timeout setting is also 100.
Below are results when I set time out = 100
Thanks.
- tristaanogre8 years agoEsteemed Contributor
That is to be expected. If it takes more than 100ms for the object's property to change from "false" to "true" then the WaitProperty method will return false. That's the purpose of the time out... to give a maximum amount of time to wait for the object property to return "true".
To be honest, when it comes to testing "Existance", I don't think "WaitProperty" is the best method. To call the "WaitProperty" method on an object that does not exist doesn't make sense... and object needs to exist to call a method on it.
Better solution to test existance of an object... WaitNNN method on the parent object...
parent.WaitChild('childobject', 10000) will wait 10 seconds to see if child object returns... if it returns, the result of the function is the object itself. If it does not, the result of the function is a "stub" object with an Exists property set to the value of "false".
Related Content
- 12 months ago
- 5 years ago
Recent Discussions
- 15 hours ago