Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

805 B
Raw Blame

Focus

Move focus to an element by selector or ref.

curl -X POST http://localhost:9867/action \
  -H "Content-Type: application/json" \
  -d '{"kind":"focus","ref":"e8"}'
# CLI Alternative
pinchtab focus e8
# Response (use --json for full JSON)
OK

CLI Flags

Flag Description
--css CSS selector instead of ref
--json Full JSON response
--tab Target specific tab

This is useful before keyboard-only flows such as press Enter or type.

The CLI accepts unified selector forms: e8, #input, xpath://input, text:Email.

Selector lookup is limited to current frame scope (default: main). Use /frame before iframe focus calls.

Related Pages