Hello,
In the application which I am testing, objects don't have ids or names I am using xpath only.
But they have a property named "api_name". Is it possible to add it in the spy to be used when adding objects to my repository?
Any one has an idea please?
Thank you.
Add a propertu manually to be used for object identifiaction
-
- Posts: 2
- Joined: Mon Jul 29, 2019 4:52 pm
Re: Add a propertu manually to be used for object identifiaction
Hi,
If the property api_name is visible in spy, then yes, it should be possible to instruct Spy/Track/Recording tool to use this property as default one in generated xpaths. Basically, you must increase xpath weight of given property. Check this post for more details...
https://www.ranorex.com/forum/track-ele ... tml#p56435
Also, if the property is located in dynamic attributes section, you may need to add the property manually to RanorexConfig file, as described here...
https://www.ranorex.com/forum/missing-d ... tml#p21384
If the property api_name is visible in spy, then yes, it should be possible to instruct Spy/Track/Recording tool to use this property as default one in generated xpaths. Basically, you must increase xpath weight of given property. Check this post for more details...
https://www.ranorex.com/forum/track-ele ... tml#p56435
Also, if the property is located in dynamic attributes section, you may need to add the property manually to RanorexConfig file, as described here...
https://www.ranorex.com/forum/missing-d ... tml#p21384
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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