Rxpath issues with custom tag names
Posted: Tue Sep 07, 2021 12:19 pm
Dear folks,
I have an issue since day 1 using Ranorex and it becomes more and more painful:
If I use tagnames in the Rxpath that are - let's say "standard HTML" - like body or label, object recognition works fine.
But if I try to use "custom" tagnames which were defined by developers (and are almost everywhere), this does not work.
I have to add tag and tagname attribute, like this:
As you see, this easily doubles the characters for each element and is much more complicated.
Not only creating those repository items take longer and longer, because of the long RXpath it is also very hard to maintain them.
Is there any possibility to get around this, maybe by adding some list of tagnames somewhere so that they are recognized as easily as standard HTML tags?
Help would be greatly appreciated, thanks!
I have an issue since day 1 using Ranorex and it becomes more and more painful:
If I use tagnames in the Rxpath that are - let's say "standard HTML" - like body or label, object recognition works fine.
Code: Select all
/body/label/...
I have to add tag and tagname attribute, like this:
Code: Select all
tag[@tagname='mytag1']/tag[@tagname='mytag2']/...
Not only creating those repository items take longer and longer, because of the long RXpath it is also very hard to maintain them.
Is there any possibility to get around this, maybe by adding some list of tagnames somewhere so that they are recognized as easily as standard HTML tags?
Help would be greatly appreciated, thanks!