Skip to content

How to properly use idb view hierarchy dump with Selector ? #1272

Answered by bartekpacia
ziadsarour asked this question in Q&A
Discussion options

You must be logged in to vote

How to use the fields provided by idb ? What is the mapping between "role", "role_description", ... from idb and "text", "contentDescription", "className", ... from Selector class ?

We should have this written down somewhere - but we don't, so very sorry about this. IIRC, Selector.text should work for text and maybe contentDescription.

Note for myself: this shows how we can implement searching by more view properties on iOS.

How should I do if my Selector matches multiple elements but want to tap on 2nd or 3rd one ? The Selector class doesn't provide a similar at(n) method as the PatrolFinder class.

You can use Selector.instance. Please bear in mind though that it doesn't have the sam…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ziadsarour
Comment options

Comment options

You must be logged in to vote
3 replies
@ziadsarour
Comment options

@abhiche
Comment options

@ziadsarour
Comment options

Answer selected by ziadsarour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants