Unable to detect other UI controls when using custom control codedUI Extension in my application. RRS feed

  • General discussion

  • I have created a CodedUI Extension for my custom control . it works fine when we use single custom control in application. but in MY application i have more than one custom control (All are same custom control but more than once used  in application). and also i have other controls  such as textbox in my application.

    But i cant able to detect other than 1st custom control. when ever i tried to create assertion using drag cross hair or control + i it shows the highlighted control of my 1st custom control in my application. Anyone having any idea about this.

    thanks in advance,


    Tuesday, December 22, 2015 5:50 AM

All replies

  • I Have corrected my code. Now it detect all the custom controls which is created by mine. but still it can't detect the other UI controls like textboxs, etc..

    By overriding GetElementFromPoint() in UITechnologyManager i have return UITechnology element (custom control) in my coded UI extension. if its not  find at particular point i will return the null. is this correct.?

    If any one having any idea about this.

    Tuesday, December 22, 2015 7:12 AM