@JessicaSachs okay, here’s what’s going on:
Calling the UiAutomator function that dumps the xml hierarchy, it plops down a ton of xml, with no root element. In order to consume it as valid xml, we add a wrapper “” around it all. But you can never actually find that element (’/hierarchy’) because it doesn’t actually exist in the UI. We filter it out, rather than having it return in a query like //*
.
This xpath expression works: /hierarchy/android.widget.FrameLayout
(or whichever the element is…).
So what would you suggest as a more intuitive fix? Have /*
return a more explicit error?