Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
Aliases.MyObjectName.WaitAliasChild("ChildObject", 1000) //waits for 1 second correctly, but logs an error if it's not found, and it's not the critical part of the test.
This statement should not return an error unless the object indicated by MyObjectName doesn't actually have a child object in the Alias tree called "ChildObject". So, this is actually the correct code to do what you want it to do, however, you need to make sure that your Aliases tree matches what you're looking for.
If ChildObject is not a direct child of MyObjectName but you still want to find it, you can use "FindChild" to search the tree to locate it, giving a set of properties and values for the search.