Question

I have a long page consisting a mix of table views and other view elements (e.g. textviews, images, buttons, etc).

Since iOS reuses table cells when scrolling, I've been getting an infinite loop when I scroll down the page because the element I use to stop the loop doesn't 'exist' (it's actually there, but gets messed up because of the tableview).

I use this command to scroll down the page in general:

scroll "scrollView", :down

However, this command doesn't work that well against table views (I usually use each_cell command when the page 100% consists of tableviews)

I wonder if there is a command to scroll a page regardless UI types in iOS.

Was it helpful?

Solution

I use this to fix the issue :)

scroll("scrollView index:0", :down)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top