Skip to content

Scroll page

Node type browser_scrollPage

What it does

Scroll the page or target element to reveal more content.

Desktop client configuration

Scroll page configuration in the desktop client

Captured in the English interface of MoreLogin Desktop V2.73.101.

Inputs

These fields belong in data.browserUi.inputs.

FieldType or valuesSchema requiredExecution defaultDescription and bounds
rangeType"window" / "selector" (supports variable references)No"window"Scroll scope. Editor initial value "window"
selectorRadio"CSS" / "XPath" (supports variable references)No"CSS"Selector type. Editor initial value "CSS"
selectorstringNo—Selector
serialWorkflowNumberNo1Element index; integer; minimum after resolution: 1. Editor initial value 1
scrollType"distance" / "position" (supports variable references)No"distance"Scroll by. Editor initial value "distance"
distanceWorkflowNumberNo—Scroll distance (px); minimum after resolution: 0
position"top" / "middle" / "bottom" (supports variable references)No"bottom"Target position. Editor initial value "bottom"
type"moment" / "smooth" (supports variable references)No"moment"Scroll mode. Editor initial value "moment"
randomWheelDistancearray / object (supports variable references)No—Scroll distance range per step (px); each end ≥ 1 after resolution (fractions allowed); max ≥ min
randomWheelSleepTimearray / object (supports variable references)No—Pause range per step (ms); each end ≥ 0 after resolution (fractions allowed); max ≥ min
postWaitMsWorkflowNumberNo300Wait after completion (ms); minimum after resolution: 0. Editor initial value 300

Mode requirements and limits

  • rangeType=selector requires selector. scrollType=position uses position; distance uses distance. type=smooth uses random ranges for scroll distance and interval.
  • Validation code RPA_NODE_INPUT_INVALID

scrollType eq "distance"

  • Required distance
  • This field is required in the editor and has no default. If it is omitted, writes and validation return RPA_NODE_INPUT_INVALID (reason=required), and a run is rejected the same way before it starts.
  • Validation code RPA_NODE_INPUT_INVALID

type eq "smooth"

  • Required randomWheelDistance, randomWheelSleepTime
  • This field is required in the editor and has no default. If it is omitted, writes and validation return RPA_NODE_INPUT_INVALID (reason=required), and a run is rejected the same way before it starts.
  • Validation code RPA_NODE_INPUT_INVALID

Input references

FieldAllowed forms
rangeTypeliteral, template
selectorRadioliteral, template
selectorliteral, template
serialliteral, numericExpression
scrollTypeliteral, template
distanceliteral, numericExpression
positionliteral, template
typeliteral, template
randomWheelDistanceliteral, numericExpression
randomWheelSleepTimeliteral, numericExpression
postWaitMsliteral, numericExpression

Outputs

Output fieldType or values
actualDistancenumber
scrollXnumber
scrollYnumber
scrollHeightnumber
viewportHeightnumber
isAtBottomboolean

Reference published fields as ${nodeId.data.field}.

JSON example

A complete node object for a workflow's nodes array or another node's blocks.

{
  "id": "scroll_to_bottom",
  "type": "browser_scrollPage",
  "data": {
    "title": "Scroll to the bottom of the page",
    "browserAction": "scrollPage",
    "browserUi": {
      "inputs": {
        "rangeType": "window",
        "scrollType": "position",
        "position": "bottom",
        "type": "moment",
        "postWaitMs": 300
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}

Back to the node catalog