GREAT LOTUS PYAUTO WEB icon

GREAT LOTUS PYAUTO WEB

10 action groups: ManagerAction, MouseAction, KeyboardAction, BrowserControl, ElementAction, ImageAction, OthersAction, EmailAction, DeveloperAction, General Debug

4. Browser Control → SwitchTab

AI-generated

Summary

Switches the active browser tab on the routed CDP session so subsequent browser actions target that tab.

Inputs

  • Topic (required) — MQTT topic used to publish the request to the client.
  • QoS — MQTT delivery level: 0, 1, or 2; defaults to 1.
  • Include Input Items — When enabled, attaches selected fields from incoming items as payload.inputItems; defaults to false.
  • Include Input Fields — Comma-separated field paths to include from incoming items when Include Input Items is enabled.
  • Wait For Response — Whether to wait for an MQTT response before returning output; defaults to false.
  • Response Timeout (sec) — Maximum response wait when enabled; defaults to 60 seconds.
  • Delay Next Step (ms) — Delay after publishing, or after receiving the response when waiting; defaults to rand(200,1000).
  • Remote Port (required) — CDP port used to route the action to the intended worker session. Defaults to {{$json.remote_port}}; use 127001 for a local session as described in the property hint.
  • Index — Zero-based tab index to activate. Defaults to 0; incoming expressions can select the index dynamically.

Output shape

A single n8n item containing the MQTT response when waiting is enabled; when it is disabled, the node proceeds after publishing and delay.

The operation sends the browser.switch_tab action with the configured remote port and tab index. The source excerpt omits implementation bodies, so the exact response field structure is not available.

Links

Discussion