I'm working on a project that uses a popup in an editor to provide objects in a ListBox for users to double click in order to add them to their document. I'm trying to create automated tests for the app using the Automation API provided by microsoft, but I can't figure out how to get the AutomationElement for a Popup control, since it's in a different tree than my editor and its controls. Does anybody know how to get the AutomationElement for a WPF Popup ?
I wound up having to start at the Desktop and query through the automation tree using some very specific PropertyConditions combined with an AndCondition, using TreeScope.Descendants as a parameter for my queries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With