2gis/Winium.Cruciatus

Why is Parent an internal property of CruciatusElement?

Opened this issue · 1 comments

Making this property public would be useful when traversing up and down a WPF tree.

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.