Wait and Click

wait_and_click Function

The wait and_click function waits for a specific element, identified by a selector, to appear on the page and then automatically clicks on it. This is particularly useful for interacting with buttons, links, or other interactive elements on the page.

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": [{
            "wait_and_click": {
                "selector": "input[name='\''Organic'\'']",
                "timeout": 20000,
                "delay": 500,
                "scroll": true,
                "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