UI Test for an ios-app, developed in XCode 8 and swift 3.2.
Facing problem to deal with ScrollViews, collectionViews after upgrade XCode to 9
I can tap and access the Buttons, StaticTexts, TextFields elements. But I can not tap or access the collectionviews, scrollviews, tableviews elements on XCode9 and Swift 3.2.
Suppose in the previous XCode version (i.e, XCode 8.3) I used the code app.collectionViews.collectionViews.cells.images.element(boundBy: 0).tap()
to tap on Home page(collectionViews). But this code is not working in XCode 9.
I tried to get the exact element using uitest recording feature. By using recording I got the code -
app.collectionViews.otherElements.containing(.textField, identifier:"StoryboardTitleTextField").children(matching: .collectionView).element.tap().
But this code isn't working too. So how can I resolve this?
Thanks