Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
When using WaitAliasChild and the object returns as Exists = False, the object is actually an empty stub with minimal properties. VisibleOnScreen is one of the properties that does not return and so you'll get the error you've reported.
You should test for Exists independent of VisibleOnScreen. Only if Exists returns true can you verify VisibleOnScreen.
You should test for Exists independent of VisibleOnScreen. Only if Exists returns true can you verify VisibleOnScreen.