Hello,
The website i am trying to test using Katalon Studio generates id that are partialy static and partialy dynamic:
//button[@id=‘staticId1:dynamicId:staticId2’]/span
But there are never two elements that have the same staticId1/2 and different dynamicId.
So i would like to somehow generate xpath
//button[starts-with(@id, ‘staticId1’) and endswith(‘staticId2’, @id)]/span
Or at least
//button[@id$=‘staticId2’]/span
Because staticId2 is usualy unique.
I know I can edit the xpath manually, but I will have hundreds of them, so I would prefer that it would be automatic.
Is there a way of suppying my own xpath generator?