When trying to iterate through a list of cells (100+)
something like collectionview.findElements(By.className(“XCUIElementTypeCell”));
Takes for about 4 minutes to execute.
Is there a better / faster way to do this?
Previously with xCode7/appium 1.5 this only took a couple seconds.
Also we have to use XCUITest navigate through cells.
Is there any scrollTo functionality available? iosautomator had a scrollTo function that work pretty well. XCTest doesn’t seem to have a replacement for it.
Now if find the cell, and it’s index 120, how do i even scroll to it?
So, I must admit, my experience with xcode8 and Appium 1.6 so far has caused me to go back to Appium 1.5.3 for now. I still believe there are many issues with it and XCUITest to work out. And I’m okay for now letting all your guys go through them for me. A big thanks for the front-line troopers!
Is there any reason you have to iterate through all the cells? Do you know the id/name of the cell you want beforehand?
Unfortunately, I need to get the nth cell of a collection view.
The collection view all have the same id, and are populated with dynamic content.
Ideally I would be able to get get the cells that are present on the screen, but unfortunately, that is not possible right now. As collectionview.findElements will gather all the cells and using a predicate find with wdVisible==1 doesn’t seem to work.