Hacker News new | ask | show | jobs
by forgotmypw17 1337 days ago
What's the verdict?

I've never tried using CSS selectors, but it seems like they would generally be less flexible and able?

XPath seems to have worked well for me.

1 comments

Selectors are typically more concise and easier for developers to use if they have front end development experience. XPath has marginal benefits over it, like referencing parents/ancestors, but you can often construct a selector to target the elements you want anyways. But since they are so similar, it really comes down to what you work faster with