esramirez
13 years agoContributor
Please - Help me to understand something
I am using FindChild to locate a ui component on the screen. The full name of this object is as follow:
Sys.Process("myProcess").WPFObject("HwndSource: Login", "MASTER").WPFObject("Login", Log On to myApp", 1)
By mistake, In my code did as follow:
var MyParent = Sys.Process("myProcess").WPFObject("HwndSource: Login", "MASTER");
var MyChild = MyParent.FindChild(WPFObject("Login", Log On to myApp", 1));
This worked ... It located the object without any problem. If you noticed however the name of the child Log On to myApp has one double quote missing at the beginning and what I don't understand is how FindChild worked when the syntax is not correct?
any thoughts?