Rayrun
← Back to Discord Forum

How to wait for elements and XHR requests that are loaded once scrolled into viewport?

iexistthereforeithinkposted in #help-playwright
Open in Discord
iexistthereforeithink
iexistthereforeithink

There are a few elements and XHR requests that are loaded once they are scrolled into viewport. Is there any way to scroll the entire page at a certain speed so that the entirety of the page is properly hydrated?

This thread is trying to answer question "How to wait for elements and XHR requests that are loaded once scrolled into viewport?"

5 replies

Any chance to cheat a little and set the viewport of the page to say 1920, 99000 ?

Then assert on the xhr and co

iexistthereforeithink
iexistthereforeithink
@p01___: This actually worked!

This actually worked!

iexistthereforeithink
iexistthereforeithink

Thanks

😎 Glad that helped

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.