Get Similar Mobile Elements
Command description
Get structurally similar mobile elements and save them to a list. This is useful for repeated items such as all currently visible products. Capture two similar elements in sequence so Runavelo can compare their shared attributes.
After retrieving similar elements, use Get Related Mobile Elements to retrieve descendants from each item. For example, first retrieve similar WeChat message items, then retrieve each message's time and sender from its descendants.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Mobile Device Object | Phone | Connected mobile object |
| Mobile Element | str | UID of a captured similar-element descriptor, not its name or ms-rpa-id |
| Element Wait Timeout | number | Maximum time to wait for matching elements, in seconds. Returns an empty list if the timeout expires. |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Similar Mobile Element List | list[PhoneElement] | A list of mobile elements with a similar structure to the target element |
Type definition reference
Related links
tip
- Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device
- If a similar-element descriptor has not been captured, the AI can call the
start_capture_similar_android_elementtool.