locked
How to search a Win32 control using the Automation Id? RRS feed

  • Question

  • I have  a Tree Item and need to search for that in Coded UI. The properties exposed for that control when using the Inspect tool in "UI Automation" mode shows as below.

    

    As the Automation Id comes up for this control, I wish to use that in my search configuration. Something like as below

    this.itemTree.SearchProperties[AutomationId...] = "66792784";

    Please let me know how it can be done.

    It seems only for WPF controls the AutomationId property is supported in the search configuration.


    Nanda

    Wednesday, June 19, 2013 5:17 AM

Answers