Jason Koelewyn
Jason Koelewyn

Reputation: 58

Is there any way with Calabash to Query ALL objects in a screen? (really all)

With Calabash, the Query("all *") gets about twice as much data as the query("*") alone does, but I still have data I cannot read without complex scroll logic.

Is there any good way to get a true 'All' data from a screen without scrolling?

For example, I have a screen with 12 containers each with 5-10 distinct pieces of data. I need to be able to read my containers to validate the data on the page.

Upvotes: 0

Views: 518

Answers (1)

jmoody
jmoody

Reputation: 2480

query returns all visible views.

query("all *") disables the visibility heuristics and returns all views.

Even when using all, some part of the view rect must exist within the bounds of the screen.

without scrolling

If you are using Calabash iOS, you can try the scroll_to_* methods which are documented here:

scroll_to_mark is the most generic - I recommend starting with that method.

Upvotes: 1

Related Questions