Xcode 9 XCUItest text field value returns placeholder

In my UI tests retrieving the value of a text field that is empty is now returning the placeholder text instead of an empty string when using Xcode9 Beta 6. This was not happening in the early betas and does not occur in Xcode 8. I was able repro in a minimal project with just a single text field on a view.


Has anyone else experienced this problem?


I filed radar 3428339, but figured I should check we're not the only ones seeing this.

Replies

I filed radar 3428339, but figured I should check we're not the only ones seeing this.

Thanks for sharing (and for filing a bug). Alas, that bug number isn’t right (it references a bug that was filed in 2003!). Did you drop a digit?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Oops! Should have been 34283397 😊

Also, the problem is still present in the GM seed release.

Filed a dupe confirming it's still an issue in Xcode 9 GM:

rdar://problem/34505268

https://openradar.appspot.com/radar?id=4978395427373056

Hi,


To complement this bug, the placeholderValue of the textField is also not correct if the textField has some value : the placeholderValue is empty whereas there is a placeholder string. The bug is present on Xcode 9 GM / iOS 11,


Regards,

I have the same problem, was it fix already?

I am seeing the same issue in Xcode 9.2 with my UI Text Fields.