Actions45
- Manager Actions
- Mouse Actions
- Keyboard Actions
- Browser Control Actions
- Element Actions
- Image Actions
- Others Actions
- Email Actions
- Developer Actions
- General Debug Actions
Mouse → mouse_click_and_hold
AI-generatedSummary
Send an MQTT message to perform a mouse click-and-hold action using Playwright, specifying the target element or coordinates and mouse button, optionally awaiting a response.
Inputs
- Topic (required) — MQTT topic to publish the mouse click-and-hold action command.
- QoS — MQTT Quality of Service level for message delivery (0, 1, or 2). Defaults to 1.
- Include Input Items — Include selected fields from input items in the payload under payload.inputItems.
- Include Input Items Fields — Fields from input items to include if 'Include Input Items' is enabled.
- Wait For Response — Wait for a reply message on a response topic before returning output (default false).
- Response Topic (required) — MQTT topic from which to receive the response when waiting for a reply; defaults to 'RES_'+Topic.
- Response Timeout (ms) — Maximum time in milliseconds to wait for the response (default 10000 ms).
- Parse Response As JSON — Whether to parse the response payload as JSON if possible (default true).
- Target — High-level selector string to identify the target element (e.g., 'css=button').
- XPath — Explicit XPath to locate the target element if not using the 'Target' selector.
- X — Absolute X coordinate in viewport space for the click-and-hold action.
- Y — Absolute Y coordinate in viewport space for the click-and-hold action.
- Button — Mouse button to use for the click-and-hold ('left', 'middle', or 'right'). Defaults to 'left'.
Output shape
a list of items that mirror the input items, each enriched with an mqtt property containing the topic, action details, and any response data if waiting for a reply; or a single item with this mqtt information if no input items exist.
Supports waiting for a response on a specified MQTT topic with configurable timeout and optional JSON parsing of the response payload. Includes ability to include selected input item fields into the published payload for context.
Examples
Example 1: Send a mouse click-and-hold command targeting a button with CSS selector 'css=button.submit' on the MQTT topic 'playwright/mouse/click', using the left mouse button and at least once QoS.
Set 'Topic' to 'playwright/mouse/click', 'Target' to 'css=button.submit', 'Button' to 'left', and 'QoS' to 1.
Example 2: Send a mouse click-and-hold using absolute coordinates (100, 200) with the right mouse button, and wait for a response on the default response topic with a timeout of 5000 ms.
Set 'Topic' to the desired topic, 'X' to 100, 'Y' to 200, 'Button' to 'right', enable 'Wait For Response', and set 'Response Timeout (ms)' to 5000.