XCUITest: Changing text field focus in iPad2 simulator causes typeText to fail

Originator:sean
Number:rdar://22266449 Date Originated:13-Aug-2015 12:38 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A176x)
Classification:Other Bug Reproducible:Always
 
Summary:
When changing text field focus in a UI Test on the iPad 2 simulator, such as when typing into multiple text fields, the error "UI Testing Failure - Neither element nor any descendant has keyboard focus. Element:" is returned when trying to typeText() on an element that you have changed focus to.

Steps to Reproduce:
Run either testChangeFocus() or testReturnFocus() in the attached Xcode project (https://github.com/Bipsync/iosxctest-textfield-keyboardfocus/releases/tag/1.0.0) on the iPad 2 simulator.

Expected Results:
The test should pass and both field should be typed in in testChangeFocus(), ending with the string "123" in the top and "456" in the bottom. In testReturnFocus() the top text field should finish with string "123456" 

Actual Results:
Both tests fail on the second attempt to type with the error UI Testing Failure - Neither element nor any descendant has keyboard focus. Element:".

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!