Adding a WPF Object to the Visual children settings

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Andrew Simpson
Posts: 22
Joined: Thu Dec 03, 2015 11:58 am

Adding a WPF Object to the Visual children settings

Post by Andrew Simpson » Thu Jul 28, 2016 3:03 pm

Hi :)

I have a number of tests failing due to ranorex not being able to see the WPF's list items within a container

This in itself is simple to fix by changing the "show all elements" WPF plugin to true, however once this is done it disrupts the rest of the modules and tests and creates more problems than it solves.

What I really need is to be able to add the individual container to the plugin so it recognises those child list items without turning them all on. This looks as though it is possible in the WPF tree section of the plugin I'm just unsure as to the actual string to add to get the desired effect

Is this the right direction or should I be doing something else?

Ive attached a snapshot+screenshot, let me know if anything else is needed
Attachments
wpf image.png
wpf image.png (70.2 KiB) Viewed 745 times
WPF List elements.rxsnp
(354.13 KiB) Downloaded 34 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3921
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Adding a WPF Object to the Visual children settings

Post by odklizec » Fri Jul 29, 2016 1:19 pm

Hi,

I believe you need to add BaseType or FullType string to "Always Show Visual Children" array?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Andrew Simpson
Posts: 22
Joined: Thu Dec 03, 2015 11:58 am

Re: Adding a WPF Object to the Visual children settings

Post by Andrew Simpson » Fri Jul 29, 2016 1:50 pm

I thought that was probably the case I just don't know what string exactly needs to be added to allow me to see the children, how do I go about ascertaining that?

**edit - just for anyone else the base string is located in the advance wpf setting in spy - this has been added and is now solved :)