How can I scroll down to the end of a dynamically loading webpage?

Hello community!!! :slightly_smiling_face:

As the title says, how can I scroll down to the end of a dynamically loading webpage? We are talking about a webpage which as much as your scrolling down new elements coming up, up to a point.

I have try:

  1. WebUI.scrollToElement(findTestObject('footer'), 30)
  2. WebUI.executeJavaScript('window.scrollTo(0, document.documentElement.scrollHeight)', [])
  3. WebUI.executeJavaScript('window.scrollTo(0, document.body.scrollHeight)', [])
  4. WebUI.executeJavaScript(‘window.scrollTo(0, **923** )’, [])

…But none of this works for me. Any other idea?

Thank you for your time!!!