Actions45
- Manager Actions
- Mouse Actions
- Keyboard Actions
- Browser Control Actions
- Element Actions
- Image Actions
- Others Actions
- Email Actions
- Developer Actions
- General Debug Actions
Keyboard → type
AI-generatedSummary
Publish a keyboard typing action via MQTT to a specified topic, optionally waiting for a response on a given response topic.
Inputs
- Topic (required) — The MQTT topic to publish the keyboard typing action to.
- QoS — Quality of Service level for the MQTT publish (0, 1, or 2).
- Include Input Items — Whether to include selected input fields from the node's input data in the MQTT payload.
- Include Input Items Fields — Comma or newline separated list of fields from input items to include in the payload if Include Input Items is true.
- Wait For Response — Whether to wait for a reply message on a response MQTT topic before returning output.
- Response Topic (required) — The MQTT topic to listen on for a response message if Wait For Response is enabled.
- Response Timeout (ms) — Maximum time in milliseconds to wait for a response message.
- Parse Response As JSON — Whether to parse the response message as JSON if waiting for a response.
- Text — The text content to type via keyboard action.
- Target — A high-level locator string for the target element to type into (e.g., id=demoInput, css=button.submit).
- XPath — Explicit XPath locator if not using the target parser.
- WPM — Target typing speed in words per minute for human-like typing simulation.
- Error Probability — Probability of typing errors to simulate human mistakes during typing.
Output shape
a list of items with original input data augmented by MQTT action info; includes response payload if waiting for response.
If 'Wait For Response' is enabled, the node subscribes to the response topic and waits up to the specified timeout. The response payload may be parsed as JSON. If not waiting, the node publishes and returns immediately. If 'Include Input Items' is true, selected fields from input items are included in the payload under 'inputItems'.
Examples
Example 1: Send a keyboard typing command to type 'hello' into an input with id 'demoInput' on the MQTT topic 'playwright/keyboard/type'. No response expected.
Set Topic='playwright/keyboard/type', Text='hello', Target='id=demoInput', QoS=1, Wait For Response=false.
Example 2: Send a keyboard typing command typing 'OTP123' with a human typing speed of 160 WPM and error probability 0.01, wait for a response on topic 'RES_playwright/keyboard/type' with a 10000ms timeout.
Set Topic='playwright/keyboard/type', Text='OTP123', Target='id=otp', WPM=160, Error Probability=0.01, Wait For Response=true, Response Topic='RES_playwright/keyboard/type', Response Timeout=10000.