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

string
required
The browser ID returned from Create Session.

Request Body

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

Response

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

Example