Change the Xpath automatically after a weight rule
Posted: Thu May 18, 2017 6:08 am
Hi,
We are running a POC on an Outsystems application. Outsystem generates a webpage and it generates new id's for the same element like this: test_<changingID>_Username
The last part of the element stays the same so we created a weight rule to have Ranorex identify the element.
This works fine.
The next thing we like to do is that it removes everything in the xpath before the '_Username'. This is now done by hand for each repository item, but as this applies to 99% of the repo-items, it would be nice if we could do this automatically when the item is added to the repository or a bulk update on the repo-items.
Is this possible?
Kind Regards, Carlo
We are running a POC on an Outsystems application. Outsystem generates a webpage and it generates new id's for the same element like this: test_<changingID>_Username
The last part of the element stays the same so we created a weight rule to have Ranorex identify the element.
This works fine.
The next thing we like to do is that it removes everything in the xpath before the '_Username'. This is now done by hand for each repository item, but as this applies to 99% of the repo-items, it would be nice if we could do this automatically when the item is added to the repository or a bulk update on the repo-items.
Is this possible?
Kind Regards, Carlo