Xcode UI Testing fails to type text: Neither element nor any descendant has keyboard focus

Originator:nskboy
Number:rdar://23899170 Date Originated:15-Dec-2015 03:19 PM
Status:Open Resolved:
Product:Developer Tools Product Version:7.2 (7C68)
Classification:Other Bug Reproducible:Always
 
Summary:
Given UIViewController subclass with two UITextFields I can not type text into second text UITextField with error: UI Testing Failure - Neither element nor any descendant has keyboard focus.

Steps to Reproduce:
1. Open attached Xcode project
2. Run tests for TextEditing scheme

Expected Results:
Test should succeed

Actual Results:
Test fails with error: UI Testing Failure - Neither element nor any descendant has keyboard focus.

Version:
Xcode 7.2 (7C68)

Notes:


Configuration:
The bug occurs only in iOS 9.2 Simulator. iOS 9.0 and 9.1 are not affected.

Attachments:
'TextEditing.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!