Browser CLI icon

Browser CLI

Control a remote browser by talking directly to a browser-cli serve endpoint

DOM → Exists

AI-generated

Summary

Checks whether a CSS selector matches an element in the remote browser’s current page by sending the dom.exists command. The operation requires the Browser CLI credentials and the serve endpoint’s --allow-read-page policy.

Inputs

  • Selector (required) — CSS selector to check, such as #main or .content. The UI declares an empty default, but the operation sends the selector as provided.

Output shape

One or more n8n items containing the raw command result.

The node unwraps the server response’s data field when present, then emits array entries as separate items; scalar results are wrapped in { "result": ... }. The specific result fields depend on the browser-cli server response.

Links

Discussion