-1

I am running the UITest for my swift project, after i click a UITextField it generated this code:

let secureTextField = app.secureTextFields["\U5bc6\U7801"]
secureTextField.tap()

The error is

/XXXUITests.swift:46:60: Invalid escape sequence in literal,

then i searched and changed ["\U5bc6\U7801"] to ["\u{5bc6}\u{7801}"], i got the error

Missing argument for parameter #1 in call

Any help?

William Hu
  • 15,423
  • 11
  • 100
  • 121
  • @MartinR i think you even don't read my question carefully, i saw that question before, the solution doesn't work. – William Hu Jan 07 '16 at 08:34
  • If you read that question before then it would be helpful to add that information (with a link) to your question. – Martin R Jan 07 '16 at 08:38
  • It works for me after that change. On which line exactly do you get the error message about the missing argument? – Martin R Jan 07 '16 at 09:16
  • Still the same line thank you, i removed all the code and re-generated it again, it works for me know. thanks! – William Hu Jan 07 '16 at 09:50

1 Answers1

0

Just not sure why i re-generated the code the error disappeared.

William Hu
  • 15,423
  • 11
  • 100
  • 121