When recording a UI test a query gets generated which leads to a "invalid escape sequence in literal" warning
| Originator: | s.rinner | ||
| Number: | rdar://22700820 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | xCode | Product Version: | 7 |
| Classification: | Reproducible: | Always |
Summary:
I got a label which looks like that (there is nobreaking space between the Euro sign and the 5):
€ 5.00
and the recording generates a line like
tablesQuery.staticTexts["\U20ac\U00a05.00"].tap()
after the recording xCode warns me about a "invalid escape sequence in literal"
Steps to Reproduce:
have a label with "€ 5.00"
record a tap on that label
try to run test - xCode complains about invalid escape
Expected Results:
correctly generated queries which do not lead into xcode errors
tablesQuery.staticTexts["\u{20ac}\u{00a0}5.00"].tap()
Actual Results:
tablesQuery.staticTexts["\U20ac\U00a05.00"].tap()
Version:
xCode Version 7.0 (7A218)
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!