Hi Team,
We are working on automating a web based application and while doing so, one of my team mate is getting xpaths while spying using [@page='****'], while others are not getting such xpath while spying same object and same version of Ranorex.
Can you let me know if there is some setting which we need to change, so that the object spy is done with /dom[@caption='****' and @page='***']
Currently i am only getting it as /dom[@caption='****']
how to configure spy to get objects using @page
-
- Posts: 18
- Joined: Thu Mar 07, 2019 2:04 pm
Re: how to configure spy to get objects using @page
Hi,
To make Ranorex Spy to construct xpath with different attribute, you need to increase xpath weight of given attribute(s). To learn how to change xpath weight, read below blog post and user guide chapter:
https://www.ranorex.com/blog/automated- ... namic-ids/
https://www.ranorex.com/help/latest/ran ... abilities/
In your case, you must create new rule and increase 'Page' attribute weight to 150 or higher...
To make Ranorex Spy to construct xpath with different attribute, you need to increase xpath weight of given attribute(s). To learn how to change xpath weight, read below blog post and user guide chapter:
https://www.ranorex.com/blog/automated- ... namic-ids/
https://www.ranorex.com/help/latest/ran ... abilities/
In your case, you must create new rule and increase 'Page' attribute weight to 150 or higher...
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
-
- Posts: 18
- Joined: Thu Mar 07, 2019 2:04 pm
Re: how to configure spy to get objects using @page
Hi odklizec ,
Thank you for your help. I am able to update the weights and modify the xpaths accordingly
Thank you for your help. I am able to update the weights and modify the xpaths accordingly