-
Notifications
You must be signed in to change notification settings - Fork 26
Scrolling large lists #7
Comments
I should mention that we are playing with a small workaround: We are overusing a field in UIWidgets called Accessibility Hint and have updated scroll_to in cucumber.rb to look for text in that field as well as the labels. |
I'm not really sure how we'd implement that. What does the language look like in your cucumber steps? |
We have not flushed it out yet. Infact, looking at it closer, our implementation will not work because it depends on the way icuke currently looks up data in the simulator which is via the screen. Its a problem since the label/hint we are targeting is offscreen. while page.xpath(%Q{//*[contains(., "#{text}") or contains(@Label, "#{text}") or contains(@hint, "#{text}") or contains(@value, "#{text}")]}).empty? We set the "hint" for each row and then just scroll_to that hint string: scroll_to("row-100") Unfortunately, as mentioned, this row is not in the screen XML because it is offscreen. Any recommendations for scrolling to an offscreen target? |
At the moment no. I'll have a think about it. |
Hey fellas,
First off, great work on this project. My team is building a pretty sophisticated iphone app and the automated testing (and integration testing) we get by integrating iCuke is amazing. Thanks!
I would like to ask about scrolling large lists. We would like to click on every item in a list of 200+ items but we cannot seem to find a way to scroll through the list such that we can access each item in order, one at a time. My take on the current state of scrolling is that you need a label to scroll to, is that correct? If we do not know the labels to scroll to in advance is there a way to accomplish what we want?
BTW, I have folks here who would be very interested in contributing if you are looking for contributors.
The text was updated successfully, but these errors were encountered: