Struggling to Use 'find in Playwright'? Any Tips or Best Practices?

10 Replies, 2457 Views

Wow, thanks so much for all the tips, everyone! I tried using `page.waitForSelector` with a timeout, and it’s already making a huge difference. I also switched to `locator` instead of find in playwright, and it feels way more reliable.

I’m still having a bit of trouble with super dynamic content, though. Has anyone tried using `page.waitForFunction` with a custom condition? I’m curious if that’s better than just waiting for a selector.

Also, thanks for the resource links—super helpful! 🙏

Messages In This Thread



Users browsing this thread: 1 Guest(s)