Skip to main content
POST
Find Node

Description

Searches the current page for a DOM element matching the given CSS selector and returns its node reference. Use the returned reference with other node-based commands.

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 find.

Response

node_id
integer
The node ID of the matched element. Use this with Fetch Text and other node-based commands.

Example