Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
CodedUI and datatree virtualization
posted

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