Browser CLI icon

Browser CLI

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

DOM → Attribute

AI-generated

Summary

Read a named HTML attribute from the element matched by a CSS selector in the remote browser page. The Browser CLI sends a dom.attr command; the serve endpoint must permit page reads (--allow-read-page).

Inputs

  • Selector — CSS selector for the element to inspect. The UI leaves this optional, but the operation sends the selector value to the server.
  • Attribute (required) — Name of the attribute to read, such as href.

Output shape

One or more n8n items containing the raw command result.

The node unwraps a response's data field when present, then emits each array element as a separate item; non-object values are wrapped in { "result": value }. The exact result fields depend on the serve endpoint.

Links

Discussion