I have read your link. So xpath on an element only has access to the descendents, not the parent.
What alternative can I use?
If I have an element, how do I get its parent?
There is no clear thread about this. Here they say one must fetch the absolute xpath of the element and then add “/…”. But how can I get the absolute xpath of a known element?