What's the best way to use Playwright locators for reliable element selection? or How do Playwright l

14 Replies, 961 Views

Hey, thanks for all the awesome tips, everyone!

I tried `getByTestId` with `data-testid` and it’s already way more stable. Also, the VS Code extension is a game-changer—didn’t even know that existed!

One follow-up: How do you handle dynamic classes? Like, when the class names change every deploy? `getByTestId` works, but curious if there’s another way.

Y’all are legends! 🚀

Messages In This Thread



Users browsing this thread: 1 Guest(s)