eykxas
5 years agoFrequent Contributor
Problem with WaitProperty and WaitTime
Hi !
I have a problem with WaitProperty and WaitTime. The WaitTimeis never used and TC always use the auto-wait timeout value of the project.
I have this code to check if an object is physically visible or not :
function isLoaded(aliasObject, item, timeout){ if(timeout == undefined || timeout == "") timeout = 4000; var obj = aliasObject.WaitProperty("VisibleOnScreen", true, timeout); if(obj){ Log.Message("Chargement " + item + " OK"); return true; }else{ Log.Error("Problème chargement de " + item); return false; } }
The auto-wait timeout of the project is 60 000 (60sec). When my code call the WaitProperty, the "local" WaitTime is always ignored and the WaitProperty use the auto-wait timeout.
How can I use the WaitTime property of "WaitProperty" ? Thx