iOS UI Testing: simulate press on Software Keyboard

Hi all,

I already know that to write some text on a UITextField or UITextView there's the typeText method

but in this way I can't test some features, e.g. if I write:


textView.typeText("a")


The text won't get auto-capitalized by the system, no matter what autcapitalizationType value I set on the corresponding UITextView.

So, is there a way to automate the directly press buttons on the Software Keyboard?


I added a question on stackoverflow too, currently with no luck:


http://stackoverflow.com/questions/34567878/how-can-i-ui-test-if-autocapitalizationtype-property-of-a-uitextfield-or-uitextv


Many thanks

Joe Masilotti answered me on its blog:


http://masilotti.com/ui-testing-xcode-7/


I recommend you to read it

iOS UI Testing: simulate press on Software Keyboard
 
 
Q