Page 1 of 1

Different Machine Different RxPath with autoamtion ID

Posted: Tue Oct 13, 2015 10:33 am
by Shakib
I am getting 2 different rxpaths for same control on different machines.

I have checked OS version (Win 7 Enterprise 64 bit) and Ranorex version (5.4) both are same in machines.
I also made sure Global settings in both machines are same. I am working on .Net framework 4.5 and WPF controls.

AUT version is also same in both machines.

I used 64 bit Ranorex spy for identification.

First one has an element while in second it is shown as container. Also the first path element control has automation id as attribute. They are as below (I have highlighted the difference part in rxpaths):


/form[@controlname='OlympusForm']/container[@controlname='pnlStandardWithNavMenu']
/container[@controlname='pnlStandardPage']/container[@controlname='ControlPanel']
//container[@controlname='pnlMainControls']/
element[@controlname='elementHost1']/element[@win32parentwindowlevel='8' and @win32ownerwindowlevel='0']//element[@automationid='PartProfileViewModel']
//table[@automationid='PartProfiles']/container[@automationid='PART_RowsPresenter']


/form[@controlname='OlympusForm']/container[@controlname='pnlStandardWithNavMenu']
/container[@controlname='pnlStandardPage']/container[@controlname='ControlPanel']
/container[@controlname='CheckInMaterialProfile']
/container[@controlname='pnlMainContent']/container[@controlname='pnlMainControls']
/?/?/element[@win32parentwindowlevel='8' and @win32ownerwindowlevel='0']//table[@automationid='PartProfiles']
/container[@automationid='PART_RowsPresenter']



Could you please let me know what may be the possible reason or do I need to check anything else.

I have attached the snapshot file as well.

Re: Different Machine Different RxPath with autoamtion ID

Posted: Tue Oct 13, 2015 12:09 pm
by odklizec
Hi,

Could you please post a Ranorex snapshot also from the second machine?

My guess is that there is either a difference in global settings (please check if C:\Users\username\AppData\Roaming\RanorexConfig5.xml is the same on both machines) or there is a difference in installed .net/runtime libs?

If you cannot find any difference, I think this path should work on both machines?..
/form[@controlname='OlympusForm']/container[@controlname='pnlStandardWithNavMenu']/container[@controlname='pnlStandardPage']/container[@controlname='ControlPanel']
//container[@controlname='pnlMainControls']//element[@win32parentwindowlevel='8' and @win32ownerwindowlevel='0']//table[@automationid='PartProfiles']/container[@automationid='PART_RowsPresenter']

Re: Different Machine Different RxPath with autoamtion ID

Posted: Thu Oct 15, 2015 7:46 am
by Shakib
global setings were different ... some path rules were different
after doing restore to defaults its is working.

Thanks for your reply :)