Open fbrier-beckman opened 4 years ago
The title was changed because having access to the AutomationElement, via the Instance property, would be helpful. The use case is to utilize Automation events, such as AddStructureChangedEventHandler(), whose 1st parameter is an AutomationElement. For instance, if a button in my app causes additional structures to be added, how does the test register to know when that happens? In time the Cruciatus framework will be enhanced to wrap automation events, but that does not exist.
Making this property public would be useful when traversing up and down a WPF tree.