Wait and Type

wait_and_type Function

The wait_and_type function allows you to input text into a specified field after waiting for the field to appear. This function is essential for filling out forms or entering search queries during the scraping process.

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_type": {
                "selector": "input[type='\''search'\'']",
                "timeout": 20000,
                "delay": 500,
                "value": "eggplant",
                "click_on_element": 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