typeText() method doesn't work on secure text field
| Originator: | xavi.gil | ||
| Number: | rdar://26320539 | Date Originated: | 17-May-2016 03:02 PM |
| Status: | Duplicate of 22722380 | Resolved: | |
| Product: | Developer Tools | Product Version: | XCode 7.3.1 |
| Classification: | Serious bug | Reproducible: | Always |
Summary:
Calling typeText() on a secure text field triggers an error saying: "Neither element nor any descendant has keyboard focus."
Steps to Reproduce:
1. Place a UITextField and set as "Secure Text Entry"
2. Create a UITest with the following code:
let txtfield = app.secureTextFields["pwd"]
txtfield.tap()
txtfield.typeText("whatever")
Expected Results:
The text should be entered in the test field
Actual Results:
The above mentioned error is returned
Version:
7.3.1
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!