How to do automated UI testing for system button on XCode7?
问题 My Storyboard has only one UI, and it has navigation bar with one UIBarButtonItem with System Item: Add. It also has another info UIButton. When doing UI testing in English everything works good without any problem. But if you switch the language to another one, it is always failed. Here is the testing code snippet: app.navigationBars["My Product"].buttons["Add"].tap() app.buttons["More Info"].tap() According to the error log, Xcode find it in another language. Here it is: Assertion Failure: