How to simulate page scrolling, that is, using the mouse wheel?

{
      "Command": "executeScript",
      "Target": "window.scrollTo(0, document.body.scrollHeight); return document.body.scrollHeight;",
      "Value": "scrollHeight",
      "Description": "滚动到底部"
    },

I tried the above command, but it didn’t work. The page didn’t slide.

This kind of automations are less reliable and require the browser window to be on focus. I go one working with the following code you might want to try to adopt to your page:

{
“Command”: “do”,
“Target”: “”,
“Value”: “/-- WHILE I CAN LOAD NEW MENU VALUES –\”,
“Description”: “”
},
{
“Command”: “executeScript”,
“Target”: “return ${myNbrDropDownMenuValues};”,
“Value”: “myNbrRememberDropDownMenuValues”,
“Description”: “Allows me to compare if we got more values. If not we got to the end”
},
{
“Command”: “XMouseWheel”,
“Target”: “700”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “100”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “sourceSearch”,
“Target”: “<div data-row-id="”,
“Value”: “myNbrDropDownMenuValues”,
“Description”: “GET NEW NUMBER OF DROPDOWN VALUES”
},
{
“Command”: “echo”,
“Target”: “${myNbrDropDownMenuValues} - ${myNbrRememberDropDownMenuValues}”,
“Value”: "green ",
“Description”: “GET NUMBER OF DROPDOWN VALUES”
},
{
“Command”: “repeatIf”,
“Target”: “(${myNbrDropDownMenuValues} != ${myNbrRememberDropDownMenuValues}) || (${myNbrDropDownMenuValues} < 26)”,
“Value”: “\– WHILE I CAN LOAD NEW MENU VALUES --/”,
“Description”: “Stops if we got to the end of the dropdown menu”
}

I use the following commands which works well for me, repeating as many times as needed…

{
  "Command": "comment",
  "Target": "Page-Down to end of page",
  "Value": "",
  "Description": ""
},
{
  "Command": "bringBrowserToForeground",
  "Target": "",
  "Value": "",
  "Description": ""
},
{
  "Command": "XClick",
  "Target": "xpath=//path/to/some/clickable/element/on/the/page,
  "Value": "",
  "Description": ""
},
{
  "Command": "XType",
  "Target": "${KEY_END}",
  "Value": "",
  "Description": ""
},
{
  "Command": "pause",
  "Target": "1000",
  "Value": "",
  "Description": ""
},
{
  "Command": "XType",
  "Target": "${KEY_END}",
  "Value": "",
  "Description": ""
},
{
  "Command": "pause",
  "Target": "1000",
  "Value": "",
  "Description": ""
},
{
  "Command": "XType",
  "Target": "${KEY_END}",
  "Value": "",
  "Description": ""
}