We can use JavaScript if we want to scroll on a web page to reveal content. The JavaScript command we will use is

window.scrollTo(xpos, ypos)


In the above command xpos indicates the horizontal scroll and ypos indicates the vertical scroll.

For more information visit https://www.w3schools.com/jsref/met_win_scrollto.asp

In order to execute the JavaScript command in one of our Processes, we can use the "Execute Javascript Function On Web Page" Action, from the "Web Automation" group of Actions, as shown in the screenshot below.




How to scroll all the way to the bottom of the web page


Option 1

Set the ypos to document.body.scrollHeight. So, the code would be


function ExecuteScript()
{
window.scrollTo(0, document.body.scrollHeight);
}


Option 2

Use the Action "Focus Text Field on Web Page" and as a target manually set an element at the bottom of the page, that would not be normally visible, unless you scrolled down. In case it is not a text box and you cannot get the control of the element with the Action "Focus Text Field on Web Page", use another Action that allows you to select the element (e.g. "Click Element on Web Page") and copy the selector from the Controls Repository.

*Note: Focus on an actual text field using the "Focus Text Field on Web Page" Action and then modify the auto-generated CSS selectors accordingly. Replace them with the selectors generated from "Click Element on Web Page".


*Loading More*

Sometimes, there is a "Loading More" element briefly appearing at the bottom - you should aim for that if possible. The element may be of any type and not necessarily a Text Box.

In order to load all the results, you should repeat that Action as long as the element still exists. You can achieve this with either a conditional loop or a label and a conditional containing a "Go To" Action.