Actions63
- 1. Manager Actions
- 2. Mouse Actions
- 3. Keyboard Actions
- 4. Browser Control Actions
- 5. Element Actions
- 6. Image Actions
- 7. Others Actions
- 8. Email Actions
- 9. Developer Actions
- 10. General Debug Actions
5. Element → count_element
AI-generatedSummary
Publishes an MQTT request to count elements matching the supplied target selector and/or XPath. Optionally waits for a response and adds selected incoming fields to the request.
Inputs
- Topic (required) — MQTT topic used to route the count request.
- Remote Port (required) — Client CDP session port used to route the request to the intended browser session.
- QoS — MQTT delivery quality level; defaults to 1 (at least once).
- Include Input Items — When enabled, includes selected fields from incoming items in the request's inputItems payload.
- Input fields — Comma-separated field paths to include, supporting nested paths and array indexes; shown when Include Input Items is enabled.
- Wait For Response — When enabled, waits for the MQTT response before returning; otherwise publishes without waiting.
- Response Timeout (sec) — Maximum response wait time in seconds; shown when waiting is enabled.
- Delay Next Step (ms) — Delay before continuing after publishing, or after receiving the response when waiting is enabled. Defaults to rand(200,1000).
- Target — Selector identifying the elements to count, such as css=button.
- XPath — XPath expression identifying the elements to count, such as //button.
Output shape
A single operation result when a response is received; otherwise publish-only completion.
The supplied source view contains no implementation bodies, so it does not establish the response fields or whether a response is parsed into JSON. The operation description indicates the remote action counts matching elements; exact behavior when both Target and XPath are provided is not shown.
