Skip to main content

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 parametersInput parameter typeDescription
Mobile Device ObjectPhoneConnected mobile object
Mobile ElementstrUID of a captured similar-element descriptor, not its name or ms-rpa-id
Element Wait TimeoutnumberMaximum time to wait for matching elements, in seconds. Returns an empty list if the timeout expires.

Command Output Parameters

Output parametersOutput parameter typeDescription
Similar Mobile Element Listlist[PhoneElement]A list of mobile elements with a similar structure to the target element

Type definition reference

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_element tool.

FAQ

See Mobile Automation FAQ