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
I suppose you could say that, if it helps you understand. However, it’s just CSS ← browsers use HTML, CSS and JavaScript - they don’t use Xpath. CSS selectors are highly optimized (although, that makes little difference in a testing environment).
Yes.
Syntax
Meaning
$=
ends with
^=
starts with
~=
contains
=
exactly what you think it means
So, a[href$='/action/people'] means,
“find an a-element that has an href attribute that ends with /action/people”