Not able to find textbox using UIAutomation, textbox is attached with spinner control.


  • i am not able to find spinner textbox using C# automation class in my code , i got the Automation ID from SPY++ or by microsoft Inspect Objects apps. but when i use this Automation id in  

    _AutomationElement = element.FindFirst(System.Windows.Automation.TreeScope.Descendants, new PropertyCondition(AutomationElement.AutomationIdProperty, AutomationIdProperty));

    is returns a NULL element.

    Please suggest me..
    Friday, February 01, 2013 3:16 PM