XCUITest Automating tapping on a link in a UITextView

Hey all,


I'm trying to automate a test where if I tap on a link in a UITextView I can verify that the app navigates to the proper screen.


However, when I am recording this at the time when I tap on the embedded link in the UITextView (which is displaying the link as a NSLinkAttributeName in an attributed string) Xcode crashes with the following error:


UNCAUGHT EXCEPTION (NSInternalInconsistencyException): ancestorFinder is not being processed by childNodeFinders.


This seems to be a common error that people are encountering so I don't have any issues about the expection. What I *am* wondering is how I would find the associated XCUIElement that represents the tappable link in the UITextView so that I can continue testing without relying on the recording feature?


Using Xcode 7.1

Replies

Its a known bug to Apple, check out https://forums.developer.apple.com/thread/10623