Browser CLI icon

Browser CLI

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

DOM → Focus

AI-generated

Summary

Focuses the matched page element using the browser-cli dom.focus command. Enter a CSS selector to identify the element; the selector defaults to an empty string, which the node passes through to the command.

Inputs

  • Selector — CSS selector for the element to focus.

Output shape

A list of n8n items containing the raw command result.

If the response data is an array, each element becomes a separate item; otherwise, the returned data becomes one item. Requires the browser-cli serve endpoint to permit control commands (--allow-control).

Links

Discussion