Skip to main content
POST
Wait For Node

Description

Blocks until a DOM element matching the given CSS selector appears on the page, or until the timeout is reached. Useful after navigation or dynamic content loads.

Authentication

Open-source deployments do not require authentication by default. If your server config enables X-API-Key, include that header with the request.

Path Parameters

id
string
required
The browser ID returned from Create Session.

Request Body

selector
string
required
CSS selector for the element to wait for.
timeout_ms
integer
Maximum time to wait in milliseconds. Defaults to 5000.

Response

node_id
integer
The node ID of the matched element once it appears.

Example