Playback Action Matching
A central problem when playing back recorded actions is to find the recorded element in the new UI during playback. Apps may differ between recording and playback because of changes to the content, design, device dimensions, or language.
When searching for correct element during playback, we attempt to find a unique match based on the rules listed below. Each rule defines the set of fields we will consider. If there are multiple elements that satisfy a rule, we will attempt to "break the tie" by considering defining characteristics of sibling and parent elements. If multiple matches or no matches remain, we move on to the next rule.
At the end of the matching algorithm, if no matches or multiple matches are found, the Javascript SDK will return an error.
On Android, we match using these rules:
content-desc, text, path, class, resource-id
content-desc, path, class, resource-id
content-desc
text, class, resource-id
text, class
text
path, class, resource-id
path, class
path, resource-id
class, resource-id
class
On iOS, we match using these rules:
accessibilityIdentifier, text, path, class, baseClass
accessibilityIdentifier, text, class, baseClass
accessibilityIdentifier, path, class, baseClass
accessibilityIdentifier
text, path, class, baseClass
text, class, baseClass
text, class
path, class, baseClass
path, class
path, baseClass
class, baseClass
class
baseClass
Last updated