How to handle object identification issues in 2 m/cs

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
smohanty78
Posts: 23
Joined: Tue Feb 10, 2015 10:51 am

How to handle object identification issues in 2 m/cs

Post by smohanty78 » Wed Apr 15, 2015 3:58 pm

Hi All,
I have automated one application in my system and it is working fine.
when one of my friend is trying to use the same object repository and execute the scripts it is not working.
Could you please tell me what could be the reason?


/dom[@page='PPSS' and @path='/PPSS/PPSS' and @browser>'{Form:PROS Accenture']
the above xpath is working fine in my system
however it is not working for others
/dom[@caption~'^PROS\ Accenture\ R2\.7\ \(VRTV' and @page='PPSS' and @path='/PPSS/PPSS' and @browsername='IE' and @pageurl='https://gps-vrtvw5989.ciotest.accenture ... inComplete']

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How to handle object identification issues in 2 m/cs

Post by krstcs » Wed Apr 15, 2015 4:40 pm

Please include the following information when raising an issue on the forums:

1. Ranorex version (current is 5.3.1)
2. Windows version
3. Technology of the system under test (HTML, Flash/Flex, Java, etc.)
4. Error message, if any.

Also, with XPath issues, it is helpful to post a Ranorex Snapshot of the element in question (note, this is not a screenshot). You can find information on creating a Ranorex Snapshot here. If you can't or don't want to post it here, you can send it to the Ranorex support team at [email protected].

You list two different paths, which one works?

Finally, have you verified (using Ranorex Spy) that the element has the same path on your system and your friend's system? For instance, I see you have the browser name in your xpath, are you sure your friend is running on the same browser and is hitting exactly the same url?
Shortcuts usually aren't...

smohanty78
Posts: 23
Joined: Tue Feb 10, 2015 10:51 am

Re: How to handle object identification issues in 2 m/cs

Post by smohanty78 » Wed Apr 15, 2015 5:56 pm

Thanks for the quick response.

When I installed Ranorex the version was 5.2.2 and tried upgrading it.However it didn't change the version.
Could you please tell me the process to upgrade.
My friend has 5.3.1 version.
Both of us are hitting the same url and same system configuration.

I have attached error snapshot.
in my system it is working fine.
regards,
Sangita
Attachments
screenshot.png
screenshot.png (126.87 KiB) Viewed 834 times

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How to handle object identification issues in 2 m/cs

Post by krstcs » Wed Apr 15, 2015 6:05 pm

The fact that you each have different versions installed could be the culprit here.

To install 5.3.1, download it here and run the downloaded executable.

If you have issues with the install, then you should do a clean uninstall first.

1. Uninstall the existing Ranorex installation.
2. Reboot.
3. Install as above.
Shortcuts usually aren't...

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How to handle object identification issues in 2 m/cs

Post by krstcs » Wed Apr 15, 2015 6:06 pm

Also, you posted a screenshot, not a Ranorex Snapshot, as requested. Please see my original post.
Shortcuts usually aren't...

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

Re: How to handle object identification issues in 2 m/cs

Post by odklizec » Wed Apr 15, 2015 7:02 pm

Hi,

In my opinion, the whole problem starts with overcomplicated DOM path. Are all these attributes in your path really necessary?

In the screenshot you posted, there is used this attribute...
@browser>'{Form:http'
However, in your first post you mentioned different content of @browser attribute...
@browser>'{Form:PROS Accenture'
So which one is correct?

I would definitely recommend to reduce the number and complexity of attributes in DOM path.
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