Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
kabacha
5y ago
0 comments
Save
Share
Your example seems pretty awful though. You'd rarely want to select element based on it's text
0 comments
1 comments · 1 top-level
top
newest
oldest
kamocyc
5y 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 ...)
j
/
k
navigate · click thread line to collapse