Add a propertu manually to be used for object identifiaction

Ranorex Spy, Recorder, and Studio.
hanen.fredj
Posts: 2
Joined: Mon Jul 29, 2019 4:52 pm

Add a propertu manually to be used for object identifiaction

Post by hanen.fredj » Tue Aug 27, 2019 2:26 pm

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.

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

Re: Add a propertu manually to be used for object identifiaction

Post by odklizec » Tue Aug 27, 2019 5:45 pm

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
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