Hey! I’ve had similar issues with find in playwright. One thing that helped me was using `page.waitForNavigation` if the content loads after a navigation event. It ensures the page is fully loaded before you try to find anything.
Also, for dynamic content, try using `page.waitForFunction` to wait for the element to be in the DOM.
Here’s a quick snippet:
```javascript
await page.waitForFunction(() => document.querySelector('your-selector'));
```
Hope this helps!
Also, for dynamic content, try using `page.waitForFunction` to wait for the element to be in the DOM.
Here’s a quick snippet:
```javascript
await page.waitForFunction(() => document.querySelector('your-selector'));
```
Hope this helps!
