Actions45
- Manager Actions
- Mouse Actions
- Keyboard Actions
- Browser Control Actions
- Element Actions
- Image Actions
- Others Actions
- Email Actions
- Developer Actions
- General Debug Actions
Browser Control → NewTab
AI-generatedSummary
Open a new browser tab with an optional URL and focus switch via MQTT publish, optionally waiting for and returning a response message.
Inputs
- Topic (required) — MQTT topic for publishing the new tab action payload.
- QoS — Quality of Service level for the MQTT message (0, 1, or 2).
- Include Input Items — Whether to include selected input fields from the previous node's items in the payload under inputItems.
- Include Input Items Fields — Specify fields from previous input data to include in payload.inputItems if Include Input Items is enabled.
- Wait For Response — Boolean to indicate if the node should wait for a response message on a dedicated MQTT topic before completing.
- Response Topic (required) — MQTT topic to receive the response message if Wait For Response is enabled (defaults to RES_
). - Response Timeout (ms) — Maximum time in milliseconds to wait for a response message when waiting for response.
- Parse Response As JSON — Whether to parse the response message payload as JSON if possible.
- URL — URL to open in the new browser tab, e.g., about:blank or https://example.com.
- Switch — Boolean to decide whether to switch focus to the newly opened tab; true by default.
Output shape
a list of items, each containing the original item data augmented with mqtt action details and optional response data if waiting for response is enabled.
The node publishes an MQTT message representing the 'NewTab' browser control action to the specified topic. If 'Wait For Response' is enabled, it subscribes to the response topic and waits up to the defined timeout for a reply, which is then included in the node's output. Otherwise, it outputs immediately after publishing. Included input fields, if selected, are attached under payload.inputItems.
Examples
Example 1: Open a new browser tab to 'about:blank' and switch focus to it, publishing the action over MQTT with QoS 1.
Set Topic to 'playwright/browser/control', URL to 'about:blank', Switch to true, QoS to 1, and leave other inputs as default with no response wait.
Example 2: Publish to open 'https://example\.com/login' in a new tab without switching focus and wait for a response on a dedicated topic.
Set Topic to 'playwright/browser/action', URL to 'https://example.com/login', Switch to false, enable Wait For Response, Response Topic to 'RES_playwright/browser/action', and configure timeout and parse JSON as desired.