How do I scroll to the bottom of a page?

Two options:

  1. Click something at the bottom of the page. It can be any element/text. UI.Vision automatically scrolls the element into view.

Example: This macro scroll to the button of the UI Vision blog. It finds and clicks the “ALL RIGHTS RESERVED” text at the bottom:

{
  "Name": "scroll",
  "CreationDate": "2019-6-17",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/blog/",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "xpath=/html/body/footer/div/div[2]",
      "Value": ""
    }
  ]
}
  1. Other option: Use XTYPE to simulate the ${KEY_PAGE_DOWN} key many times.

(CTRL+HOME typically scrolls to the top of the window. CTRL+END typically scrolls to the bottom of a window. But these are not supported yet)

1 Like