Page 1 of 1
How to handle object identification issues in 2 m/cs
Posted: Wed Apr 15, 2015 3:58 pm
by smohanty78
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']
Re: How to handle object identification issues in 2 m/cs
Posted: Wed Apr 15, 2015 4:40 pm
by krstcs
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?
Re: How to handle object identification issues in 2 m/cs
Posted: Wed Apr 15, 2015 5:56 pm
by smohanty78
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
Re: How to handle object identification issues in 2 m/cs
Posted: Wed Apr 15, 2015 6:05 pm
by krstcs
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.
Re: How to handle object identification issues in 2 m/cs
Posted: Wed Apr 15, 2015 6:06 pm
by krstcs
Also, you posted a screenshot, not a Ranorex Snapshot, as requested. Please see my original post.
Re: How to handle object identification issues in 2 m/cs
Posted: Wed Apr 15, 2015 7:02 pm
by odklizec
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.