Page 1 of 1

Add a propertu manually to be used for object identifiaction

Posted: Tue Aug 27, 2019 2:26 pm
by hanen.fredj
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.

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

Posted: Tue Aug 27, 2019 5:45 pm
by odklizec
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