Scroll

scroll Function

The scroll function allows you to scroll the page vertically to a specific position. This can be useful for loading content that becomes visible as you scroll, or for moving to a specific part of the page to interact with elements that are not immediately in view.

Example Request

curl -X POST 'https://api.webit.live/api/v1/realtime/web' \
--header 'Authorization: Basic <credential string>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://www.example.com",
    "render": true,
    "render_flow": [{
            "scroll_to": {
                "selector": "input[name='\''Organic'\'']",
                "visible": false
        }
    }]
}'

Like all Page Interactions, infinite scrolling is capped by the global 120-second session timeout, and will be terminated if this limit is reached.

Last updated