Hacker News new | ask | show | jobs
by kabacha 2149 days ago
Your example seems pretty awful though. You'd rarely want to select element based on it's text
1 comments

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 ...)