How can I scroll down at the bottom of the page if I have infinite scrolling?

Hello!
Can anyone tell me how can I scroll down at the bottom of the page if I have infinite scrolling and I want to see all results. I have a web page, and I’m filtering through the list and I want to see all the results…until I see the footer. How can I do that?
I tried to use - WebUI.scrollToPosition(0, 9999999) - but the scrolling stopped at the middle of the page. Then I added - WebUI.scrollToPosition(9999999 - 9999999) but nothing changed.
Thank you in advance for your help!

Hello ,
you can use javascript to scroll.

I tried…but it stopped at the middle of the page and the footer was not displayed. I used this - WebUI.executeJavaScript(‘window.scrollTo(0,document.body.scrollHeight)’, null)

You can try webUi.scrollToElement and then scroll to the footer of the page.

Please try the below …

WebUI.scrollToElement(findTestObject('footer'), 30)
[OR]
WebUI.executeJavaScript('window.scrollTo(0, document.documentElement.scrollHeight)', [])
[OR]
WebUI.executeJavaScript('window.scrollTo(0, document.body.scrollHeight)', [])

image
[OR]
WebUI.executeJavaScript(‘window.scrollTo(0, 923)’, [])