Is it possible to use sendKeys to send a Page Down to an entire document?

I want to create a while loop that works its way down a document full of dynamically IDed elements that dynamically loads the page as you scroll down.

Is it possible to use sendKeys to send a Page Down to an entire document or window? What would the target name be? I don’t want it scrolling to find the element, just to page down to force loading more of the document.

This is easy, you only need to make sure that the web browser has the focus (= is in front). This can be down by clicking anywhere on it (e. g. XClick | 1,1) or simply with bringBrowserToForeground.

This macros scroll down an Instagram page in a endless loop:

{
  "Name": "scroll endless",
  "CreationDate": "2019-3-21",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://www.instagram.com/sarahandersencomics/",
      "Value": ""
    },
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "label",
      "Target": "again",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_PAGE_DOWN}",
      "Value": ""
    },
    {
      "Command": "gotoLabel",
      "Target": "again",
      "Value": ""
    }
  ]
}