TEST AUTOMATION LITERACY · REFERENCE CARD
Locators: finding an element with CSS selectors and XPath
Pick a handle for each element that survives a redesign, write it as a Cascading Style Sheets (CSS) selector or an XPath, and fix stale-element and wrong-element slips.
Derived from Locators: finding an element with CSS selectors and XPath. Every claim on this card is sourced on that page. All software testing reference cards.