Ugh, dynamic content is the bane of my existence. One thing that’s helped me is using try-except blocks with waits. Like, try to find the element, and if it fails, wait and try again.
For AJAX, I’ll sometimes use browser.execute_script to check if certain elements exist or if the page is fully loaded. It’s not perfect, but it’s better than nothing.
Also, Playwright is worth checking out. It’s like Selenium but way better at handling dynamic stuff.
For AJAX, I’ll sometimes use browser.execute_script to check if certain elements exist or if the page is fully loaded. It’s not perfect, but it’s better than nothing.
Also, Playwright is worth checking out. It’s like Selenium but way better at handling dynamic stuff.
