Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kabacha
· 6y ago · 0 comments
Your example seems pretty awful though. You'd rarely want to select element based on it's text
Comments
[–]
kamocyc
6y ago
I think the author claims the XPath is more "robust" because it doesn't depend on indexes of the elements so you can add elements without breaking the XPath. (But it is arguable which one is better ...)