I'm searching for a customcontrol in a generic way, so I can re-use the function to find other customcontrols that match this one.
Screenshot of the properties
It has a Name and a ControlName. The name property will not always be filled in correctly, the ControlName will be!
When I look for the customcontrol like in the code below, he will locate and perform the requested actions.
WinGroup group = new WinGroup(this.window); group.SearchProperties.Add(WinGroup.PropertyNames.Name, strGroupName, PropertyExpressionOperator.Contains); group.SearchConfigurations.Add(SearchConfiguration.NextSibling);
When I change the PropertyNames to ControlName, he will not locate the control! Which completely surprises me, because it is also unique.
What can be the cause of this? Am I missing something or am I doing something wrong?
Just to be safe, can PropertyNames.ControlName be used to find objects?
Regards, Leslie