Our application uses dynamic generation of interface elements.
Container items do not have unique names.
But they contain a text element.
How to set up xpath generation so that text is automatically added to container elements in the xpath.
Example:
now when you click on the container element, the xpath looks like this
I would like it to be formed like this
Automatically generate xpath, for container item with a textincenter, in a dynamic application
-
- Posts: 2
- Joined: Wed Oct 21, 2020 7:16 am
Automatically generate xpath, for container item with a textincenter, in a dynamic application
You do not have the required permissions to view the files attached to this post.
Re: Automatically generate xpath, for container item with a textincenter, in a dynamic application
try skipping useless items from the xpath,
modify manually to :
.//container[@your stuff here ]
modifying the settings in ranorex might also work:
got settings| tab advanced
modify speed vs robustness setting and record again with different setting, your xpath might get shorter /langer on differnt setting
You might also add your own weight rules which makes ranorex add your prefered attribute to the xpath automatically.
But take extreme care when changing /adding weights, you might corrupt the recognition in such way nothing will be found
modify manually to :
.//container[@your stuff here ]
modifying the settings in ranorex might also work:
got settings| tab advanced
modify speed vs robustness setting and record again with different setting, your xpath might get shorter /langer on differnt setting
You might also add your own weight rules which makes ranorex add your prefered attribute to the xpath automatically.
But take extreme care when changing /adding weights, you might corrupt the recognition in such way nothing will be found