In Object Repo for an item settings in Objects Properties when use condition ‘ends with’ it does not work.
I have used other xpath which works but as development continuing xpath always get change and it not possible to change all these xpaths. only reliable solution is to use the ends with condition but it seems that ends with command does not work. In addition to that ‘matches regex’ command also does not work.
i.e //a[ends-with(@href, ‘/action/people’)]
please find the attached screenshot.
tested in -
Katalon V 7.0.0.rc1
Katalon V 6.3.3 Build: 11
Selenium use browser’s XPath engine by default. Most browsers support XPath 1.0 only, and
ends-with is only available in XPath 2.0.
Try a CSS selector:
Thanks for your suggestion. so, this CSS selector is conversion of above Xpath or is it works like ‘ends with’ command?
Thanks in advance.
exactly what you think it means
a-element that has an
href attribute that ends with
css voodoo in full glory
@mohammad.zaman on the w3schools you can find very good docs on how css selectors works
Thank you all, for your quick response on this…
Did we solve the problem?