Forum Discussion
AlexeyKolosov
14 years agoStaff
Hi Alex,
A possible cause of such behavior is that the object returned by the Child method is not the same as the named Alias item. The point is that some levels of hierarchy can be omited in Aliases, while the Child method work with the original objects tree available in the Object Browser, not with the Aliases tree. To check whether this assumption is correct, post the value of the FullName property of the two objects in a row, like this:
Log.Message(Aliases["ApplicationLauncher"]["MainMenu"]["WindowPanel"]["Child"](0)["FullName"])
Log.Message(Aliases["ApplicationLauncher"]["MainMenu"]["WindowPanel"]["EmployeeMaintenance"]["FullName"]);