I have a UITextView with Accessibility Identifier properly set up. When I try to hook this element usingapp.textViews["textViewIdentifier"]
it does not work.
It probably does not work because I'm not setting up accessibility traits correctly. I don't see any traits available for UITextView in interface builder or documentation
Playing with different traits I was able to find the textview but it does not execute textView.typeText("test text")
since traits don't match with type.
TextView is contained only in default UIView.
After more testing, the core of issue seems to setting up Accessibility traits correctly for UITextView. How do you correctly setup Accessibility Traits for UITextView?