The XCUIEelement class – the class that we use to interact with elements in UI tests – does not have a dismiss() or done() function. How are you calling DatePicker.dismiss() and NavigationBar.done() in UI tests? Please explain.
Post
Replies
Boosts
Views
Activity
Sadly, calling application.datePickers["DatePicker"].tap() to dismiss the DatePicker does not work on iOS 16 devices. I have created a new forum thread for the issue here.
This works 🙌 Thank you 🙏
Thanks for your response. I have submitted a suggestion in Feedback Assistant just now for an API like accessibilityElement(children: .combine) to be added to UIKit. Until that's added, I'm running with your idea of updating the parent view's accessibility label whenever the text in any of the children changes by means of the stack view, as follows: parentView.accessibilityLabel = stackView.arrangedSubviews.map { $0.accessibilityLabel ?? "" }.joined(separator: " ").
Thanks for the suggestions 🙏 The three suggestions don't quite work for my setup but the first one gives me confidence that the solution which I have been converging towards isn't all too bad. The best solution that I have been able to come up with – which is similar to your first suggestion – is to create a new dynamic framework DF, link it to StaticLibrary with the -all_load linker flag and then link App, DynamicFramework1 and DynamicFramework2 to DF instead of StaticLibrary.
Thanks for the advice 👍 MobileTen's suggested fixes don't quite work for my setup but the first of his/her suggestions has given me confidence in the solution that I have been converging towards. I'll post an answer in this thread that summarises my solution.