I have a problem on console based client application which has Delphi controls. So as it is a Delphi based application, I am using RAW GDI plugin to capture objects. Initially, I generated my scripts on Win7-64 bit OS. Later on when I tried to run same scripts on same console application version on WIn8.1 OS, some of the objects are failed to identify during script execution. The reason is, on 8.1 OS, it seems to use a different object path to locate same objects to perform actions on it.
The object is saved with path
"/form[@controlname='ConsoleForm']/element[@controlname='ActionMainMenuBar']/rawtext[@rawtext='Options' and @row='1']"
On Win7, it is working fine but when try to perform some action on same object in Win8.1, it failed to identify the object. If I update object path after excluding "@row=1" attribute, it starts working fine.
But with this exclusion of attribute, Ranorex is not able to uniquely identify same object on Win7

So the path is not robust enough to locate this object on both machines having different OS. At the moment, I am using Ranorex v6.2.0
Also, have a look on the attached image to show you the SUT and object path saved in repository.
Will appreciate any feedback on this matter because atm I don't know how to tackle this situation.
Thanks,