I am working on UI test automation and have noticed that usually AutomationElement.FromHandle is quite fast, but occasionally it takes 30 seconds to return an AutomationElement. From my limited logging it either takes less than 100ms or a full 30 seconds to get an AutomationElement back. Has anyone else seen this type of issue?
I admit that I have not done much investigation on the repeat-ability of this issue, so I don't know if there is potentially a performance issue with a control class in the application under test.