FindChild() cannot find correct object.
I am using FindChild() to find a child (in my case GridViewCell) with specific properties, but it keeps returing wrong child object.
Here is the scenario:
I am trying to find a GridViewCell with:
RadTreeListView.FindChild(["ClrClassName", "DataColumn.DisplayIndex", "Value.OleValue"], ["GridViewCell", 5, "ABCDEFG"], 100, true);
But I keep getting a GridViewCell which matches all the properties except 'Value.OleValue', here Value==null. I am not sure why FindChild is returning an objrct that does not even satisfies all the properties.
Can someone please help me with this
Issue here turned out to be "OleValue" property, which according to smartbear is dummy property inserted by TestComplete and should not be used for Finding objects. So issue is fixed if I use:
RadTreeListView.FindChild(["ClrClassName", "DataColumn.DisplayIndex", "Value"], ["GridViewCell", 5, "ABCDEFG"], 100, true);