Hi,
I'm trying to automate xamdatatree using CodedUI kind of tests and it is somehow working if all elements of tree are visible.
Unfortunately if we have lot of tree elements and some of them are hidden it is impossible to find and select them.
For example FindAll() of AutomatedElement class returns only visible elements - https://msdn.microsoft.com/en-us/library/system.windows.automation.automationelement(v=vs.110).aspx.
I'm guessing this is because xamdatatree is using virtualization and is creating and destroying elements on the fly.
Is it possible to disable virtualization for this control so I can check if this helps?
If not then maybe you have some idea how to implement automation of this control in CodedUI?
Right now my only option seems to expand whole tree and use scrollbar and that way go through every element.
Regards,
Jarek
Hello Jarek,
By default the UI virtualization of XamDataTree is turned on and it doesn't have an exposed property for changing this state. Currently Coded UI is not supported officially by our XamDataTree control. We are providing a product that is designed for creating automation tests especially for our controls. Here is a link from our web site, where you can find more information about our Test Automation for WPF:
https://es.infragistics.com/products/test-automation-hp-uft
Let me know if you have any question.
Sincerely,ZhivkoAssociate Software Developer
OK thanks for the answer.
It looks like we will be limited in our testing capabilities :(