4 minutes readKey takeaways Prefer id, then a stable data attribute. XPath by position breaks on the next layout change. CSS selectors are faster and more readable than XPath for most cases. If a locator needs a comment to explain it, the page needs a test hook instead. Hey there! If you’re dabbling in the art of… Read more »