CollectionView cells count in UI Testing does not return correct count
| Originator: | james.sayer | ||
| Number: | rdar://26267187 | Date Originated: | 5/13/2016 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.3.1 |
| Classification: | Reproducible: | Always |
Summary: I'm trying to automate my companies app, which contains a collection view. I've noticed that when I query the number of cells in the collection view, it returns the incorrect number. In the attached screenshot, you'll see that the app displays "5 Cells Found", however Xcode only sees 3 of them. Steps to Reproduce: Open an app that has CollectionView cells where some are off screen. Query the number of collectionview cells in the Xcode debugger Expected Results: Xcode prints out the correct number of cells Actual Results: Xcode prints out an incorrect number of cells Version: iOS Simulator: Version 9.3 (SimulatorApp-645.9) Xcode Version 7.3.1 (7D1014) Notes: This issue prevents me (and I'm sure many others around the world) from automating our app correctly. If you simply google "UI Testing in Xcode collectionview cell count incorrect" you'll see many others complaining about the issue. Configuration: OS X 10.11.2 Attachments: 'Screen Shot 2016-05-13 at 10.03.18 AM.png' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!