xceed wpf wizard application

Ask general questions here.
User avatar
subodh4u7
Posts: 71
Joined: Tue Jan 06, 2015 8:26 am

xceed wpf wizard application

Post by subodh4u7 » Fri Nov 11, 2016 7:30 am

Hi All,

I have an windows application (xceed Wpf wizard). There are some buttons. I am not able to identify if "Show All Elements" is set to False.

However when i set true, I am able to identity but it adds many attribute in the path. is there other way to handle the path or identify the buttons without adding unwanted element[pos()=0]/container[pos()=0].

I know this can be place ?/? marks instead of /element[pos()=0]/container[pos()=0]. But any other way please or any other settings.

RxPath:

/form[@automationid='AppWindow' and @wpfnative='True' and @name='AppWindow']/container[@automationid='PART_Control' and @name='PART_Control']/element[pos()=0]/container[pos()=0]/container[@automationid='PART_WorkArea' and @name='PART_WorkArea']/element[pos()=0]/container[pos()=0]/list[@automationid='wizard' and @name='wizard']/element[pos()=8]/container[pos()=0]/element[pos()=3]/container[pos()=0]/container[pos()=0]/button[@automationid='PART_BackButton' and @name='PART_BackButton' and @text='Back']
You do not have the required permissions to view the files attached to this post.
Regards,
Subodh

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

Re: xceed wpf wizard application

Post by odklizec » Fri Nov 11, 2016 8:10 am

Hi,

If the required elements are not visible/trackable via Spy with "Show All Elements" set as "false", then there is most probably no other way how to work with them. Please post a Ranorex snapshot of the element(s) in question both with "Show All Elements" enabled and disabled. Without snapshot, it's pretty hard (often impossible) to suggest something reliable.
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

User avatar
subodh4u7
Posts: 71
Joined: Tue Jan 06, 2015 8:26 am

Re: xceed wpf wizard application

Post by subodh4u7 » Fri Nov 11, 2016 11:30 am

Hi,

Please find the ranorex snapshot.
You do not have the required permissions to view the files attached to this post.
Regards,
Subodh

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

Re: xceed wpf wizard application

Post by odklizec » Fri Nov 11, 2016 12:15 pm

So, apparently, "Show All Elements" set as "true" is a must for this app. And I think it's safe to ignore most of the elements (and attributes too) within the xpath. In other words, you can reduce the xpath to bare minimum, like this:

Code: Select all

/form[@automationid='AppWindow']/container[@automationid='PART_Control']//container[@automationid='PART_WorkArea']//button[@automationid='PART_BackButton']
Hope this helps?
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

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: xceed wpf wizard application

Post by N612 » Fri Nov 11, 2016 5:41 pm

In addition to this, you can play with the WPF element filters to filter out objects you dont need, and unfilter the ones you do need.

Global Settings > Plugins > WPF Tree
2016-11-11 11_39_30-Settings.png
You do not have the required permissions to view the files attached to this post.

Hondo
Posts: 47
Joined: Thu Nov 03, 2016 12:03 am

Re: xceed wpf wizard application

Post by Hondo » Fri Nov 11, 2016 7:31 pm

N612 wrote:In addition to this, you can play with the WPF element filters to filter out objects you dont need, and unfilter the ones you do need.

Global Settings > Plugins > WPF Tree
2016-11-11 11_39_30-Settings.png
That's kinda cool.
Thanks for the tip.

User avatar
subodh4u7
Posts: 71
Joined: Tue Jan 06, 2015 8:26 am

Re: xceed wpf wizard application

Post by subodh4u7 » Mon Nov 14, 2016 5:22 am

Thanks all.
Regards,
Subodh