
Hi,
we are automating our user interface for testing purposes. At the moment we're trying to automatically use our tree control so that we can expand, collapse and invoke (click) its elements.
For that, we need to assign dynamic AutomationId's to our tree items.
The tree is Actipro control based and we're kind of stuck trying to assign these AutomationIds to our tree elements.
The tree itself consist of a TreeListView and it contains an ItemAdapter with the items we want to access in our UI.
<grids:TreeListView x:Name="ListOfTreeItems" RootItem="{Binding RootTreeItem}" [...]
<grids:TreeListView.ItemAdapter>
<local:TreeListAdapter x:Name="ItemAdapter"
ChildrenBinding="{Binding VisibleItems, Mode=OneTime}"
/>
</grids:TreeListView.ItemAdapter>
</grids:TreeListView>
Is it somehow possible to assign a dynamically generated AutomationId to each individual item in the tree?
Is it generally possible to access the Actipro TreeListView and its Items via UI Automation as an automation element of type TreeControlType?
Thanks in advance for any advice!