๐ฏ How to target the elements you want to interact with
Use the Waldo inspector in a Live Session to reveal the tree of your current view, as Waldo sees it. Here is a video where we introduce it.
Using the inspector, can then :
- explore your view as you would use the the Chrome Dev Tools Inspector in a webpage,
- reveal each element properties
- and determine which property (or combinations of properties!) is the best fit to reliably and uniquely define your target element.
Choosing the right property can be really hard. The best properties are unique in this view and stable. Depending on your testing strategy, "stable" means stable across your app changes, devices, screen resolutions, or languages. That's why accessibility IDs, for instance, make really good IDs, while pixel coordinates are very fragile.
Updated 8 months ago