MQTT General

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

Mouse → mouse_scroll

AI-generated

Summary

Publish a mouse scroll action as an MQTT message to a specified topic, optionally waiting for a response message.

Inputs

  • Topic (required) — MQTT topic used for publishing the mouse scroll action message.
  • QoS — MQTT Quality of Service level for message delivery (0, 1, or 2).
  • Include Input Items — Whether to include selected fields from input items in the MQTT payload.
  • Include Input Items Fields — Specific fields from previous input items to include in the payload if Include Input Items is true.
  • Wait For Response — Whether to wait for a reply on a specified response topic before returning node output.
  • Response Topic (required) — MQTT topic used to receive a reply message if waiting for a response. Defaults to "RES_".
  • Response Timeout (ms) — Maximum time in milliseconds to wait for a response message if Wait For Response is enabled.
  • Parse Response As JSON — Whether to parse the response payload as JSON when a response is received.
  • Pixels — Scroll distance in pixels.
  • Target — High-level selector string (e.g., id=..., css=..., xpath=...) to identify the element to scroll.
  • XPath — Explicit XPath selector used if target parsing is not applicable.
  • Direction — Scroll direction: 'up' or 'down'.
  • Duration (ms) — Duration of the scroll action in milliseconds; omit to use default timing.

Output shape

a list of items corresponding to input items or a single item if no input, each including JSON data with the original input fields plus an 'mqtt' object detailing the issued topic, action, payload, and optionally the response if awaited.

If 'Wait For Response' is enabled, the node subscribes to the response topic and waits up to the specified timeout for a reply, parsing it as JSON if configured. On failure or timeout, errors are thrown unless 'continueOnFail' is set. The action sent is 'mouse.mouse_scroll' with inputs including pixels, target, xpath, direction, and duration as applicable.

Examples

Example 1: Scroll down 300 pixels on the element with selector 'id=demoInput' over the default duration, publishing to topic 'playwright/mouse/scroll'.

Set Topic to 'playwright/mouse/scroll', Pixels to 300, Target to 'id=demoInput', Direction to 'down'.

Example 2: Scroll up 400 pixels over 1000 ms without waiting for a response.

Set Topic to 'custom/scroll', Pixels to 400, Direction to 'up', Duration (ms) to 1000, Wait For Response to false.

Links

Discussion