It looks like either the control changes or the way Ranorex sees the control changes.
Here's the original XPath that has been working for at least a year now.
Code: Select all
/form[@controlname='SqlCIItemBrowseForm' and @processname='SConsinv']/element[@controlname='Toolbar']/toolbar[@accessiblename='Toolbar']/button[1]
These two images were taken with the same build of this app within 30 mins of each other.
I solved this instance by taking the element out of the path and searching all descendents under 'SqlCIItemBrowseForm'
Code: Select all
/form[@controlname='SqlCIItemBrowseForm']//toolbar[@accessiblename='Toolbar']/button[1]
Code: Select all
/form[@controlname='SqlCIItemBrowseForm']/element[@controlname='Toolbar' or @class='TTenStdToolbar']/toolbar[@accessiblename='Toolbar']/button[1]
I was able to reproduce this issue on a lower resolution than I use to develop the scripts but this is not always the case.
System Info:
Ranorex: 5.2.4.23988
OS: Windows Server 2008 R2 standard
The tests are ran on a VM with
200gb hd
AMD Opteron 4386
8 gb ram
64 bit os