How to properly use idb view hierarchy dump with Selector ? #1272
-
Hello, My problem is that I can't pick an image from the photos library in iOS (not tried with Android). ![]() So i dump the view hierarchy using idb (in a simulator) : Weird output : cancel button, images, etc. doesn't appear, only the root element is visible (I've also tried with --nested and --json options, but same output) :
It's okay, I can still find informations about images using describe-point, so I run ![]() Here is the output :
It's great, I've some informations about the image element like "AXLabel", "role", "role_description", ...
(You will notice that I've tried with two different appId). So here are my questions :
I've searched and found those 2 issues mentioning the photos library but they were not really helpful :
Thank you ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I'm still stuck with this :/ |
Beta Was this translation helpful? Give feedback.
-
We should have this written down somewhere - but we don't, so very sorry about this. IIRC, Note for myself: this shows how we can implement searching by more view properties on iOS.
You can use |
Beta Was this translation helpful? Give feedback.
We should have this written down somewhere - but we don't, so very sorry about this. IIRC,
Selector.text
should work fortext
and maybecontentDescription
.Note for myself: this shows how we can implement searching by more view properties on iOS.
You can use
Selector.instance
. Please bear in mind though that it doesn't have the sam…