OP reply:
Whoa, thanks for all the ideas! Tried `text=` in Playwright and it kinda worked, but the element’s text changes sometimes.
Follow-up: Anyone know how to make `contains(text())` more stable? Like, ignoring whitespace or case?
Also, `nth-child` scared me—DOM changes a lot. Maybe I’ll test `getByRole` next.
Y’all saved my sanity today. 🙏
Whoa, thanks for all the ideas! Tried `text=` in Playwright and it kinda worked, but the element’s text changes sometimes.
Follow-up: Anyone know how to make `contains(text())` more stable? Like, ignoring whitespace or case?
Also, `nth-child` scared me—DOM changes a lot. Maybe I’ll test `getByRole` next.
Y’all saved my sanity today. 🙏
