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

Parents
No Data
Reply
  • 16495
    Verified Answer
    Offline posted

    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://www.infragistics.com/products/test-automation-hp-uft

    Let me know if you have any question.

    Sincerely,
    Zhivko
    Associate Software Developer

Children