Scroll
Scrolls the page vertically by a specified number of pixels.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing the node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If Continue On Error property is true, no error is caught when the project is executed, even if the Catch node is used.
Input
- Browser ID - The browser session identifier from the Open Browser node.
- Number of Pixel - Number of pixels to scroll. Positive values scroll down, negative values scroll up.
Examples
Scroll Down
Browser ID: {{browser_id}}
Number of Pixel: 500
Scroll Up
Browser ID: {{browser_id}}
Number of Pixel: -300
Scroll to Bottom
Use a large number to scroll to the bottom:
Browser ID: {{browser_id}}
Number of Pixel: 999999
Load Infinite Scroll Content
Loop 10 times:
1. Scroll node:
Browser ID: {{browser_id}}
Number of Pixel: 1000
2. Wait 2 seconds for content to load
3. Extract loaded data
Scroll Element into View
For precise scrolling to an element, use Run Script:
Browser ID: {{browser_id}}
Function:
document.querySelector('#target-element').scrollIntoView();
Tips
- Use positive values to scroll down, negative to scroll up
- Scroll in increments for infinite scroll pages to load content
- Add delays after scrolling to allow dynamic content to load
- For precise element scrolling, use Run Script with scrollIntoView()
- Large pixel values will scroll to the end of the page
- Scrolling doesn't wait for content to load
Common Errors
- "Browser ID cannot be empty" - Connect to an Open Browser node
- "Invalid pixel value" - Provide a valid number for scroll amount
- "Browser session not found" - Ensure the Open Browser node has run successfully
Related Nodes
- Run Script - Execute custom scroll JavaScript
- Wait Element - Wait for scrolled content to appear
- Screenshot - Capture page after scrolling