winforms - CodedUI : PropertyNames.ControlName doesn't work -


i'm searching customcontrol in generic way, can re-use function find other customcontrols match one.

screenshot of properties

it has name , controlname. name property not filled in correctly, controlname be!

when customcontrol in code below, locate , perform requested actions.

wingroup group = new wingroup(this.window); group.searchproperties.add(wingroup.propertynames.name, strgroupname, propertyexpressionoperator.contains); group.searchconfigurations.add(searchconfiguration.nextsibling);

when change propertynames controlname, not locate control! surprises me, because unique.

what can cause of this? missing or doing wrong?

just safe, can propertynames.controlname used find objects?

regards, leslie


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -