typeText doesn't enter text in a secure text field

Originator:samuel.watts
Number:rdar://24607522 Date Originated:11/02/2016
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.2.1
Classification:Other Bug Reproducible:Always
 
Summary:
I have a sign in form with one text field, and one secure text field (email and password respectively). My UI test is 
1. tap email field 
2. typeText in email field
3. tap password field
4. typeText in password field

Steps 1-3 are successful, but 4 fails

Steps to Reproduce:
Create a simple UI with 2 text fields, one secure and one not, and run the following as part of a UI test 

app.textFields["email_field"].tap()
app.textFields["email_field"].typeText("test@email.com")
        
app.secureTextFields["password_field"].tap()
app.secureTextFields["password_field"].typeText("password")

Expected Results:
Text should be entered in both fields

Actual Results:
Text is only entered in the non-secure (email) field, though the tap is successful on password (i.e. it becomes the first responder)

Version:
Xcode 7.2.1

Notes:
As a workaround I am using the clipboard approach described here: https://forums.developer.apple.com/thread/5910

That thread also mentions a bug being made so this is a duplicate, but I don't know the original number 

Configuration:
Xcode 7.2.1, iPad Air 2 (9.2)

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!