Automatically scrolls through infinite scroll content by repeatedly scrolling to the bottom
until no new content loads or maximum scroll limit is reached.
from intuned_browser import scroll_to_load_contentasync def automation(page, params, **_kwargs): await page.goto("https://docs.intunedhq.com/docs-old/getting-started/introduction") # Scroll through entire page content await scroll_to_load_content(source=page) # Now all content is loaded and visible