Skip to content

Instantly share code, notes, and snippets.

@dpgraham
Created February 12, 2019 01:25
Show Gist options
  • Save dpgraham/d0b72d153db279a9cd8126708a822231 to your computer and use it in GitHub Desktop.
Save dpgraham/d0b72d153db279a9cd8126708a822231 to your computer and use it in GitHub Desktop.

One of the new features of Appium 1.12 is a new selector strategy for Android (Espresso only) called -android datamatcher. This new selector strategy makes use of Espresso's data matcher.

A challenge for selecting elements with Android is selecting elements that aren't rendered on the screen. Take this example:

[https://imgur.com/a/GWlVv5m]

(TODO: Mention the multiple adapterView problem and the solution)

(TODO: Show an example of JSON for selecting with equivalent Java code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment