I am attempting to write a UI test to verify an insert operation for a UITableView. I can access the button using the following code:
let insertButton = XCUIApplication().tables.containingType(.Cell, identifier: "MyCellType").buttons["Insert "]
insertButton.exists returns true
insertButton.hittable() return false
insertButton.tap() throws Assertion Failure: UI Testing Failure - Unable to find hit point for Button
If I set a break point at the insertButton.tap() statement, I can then tap the button in the simulator and it works. My test worked before upgrading to Xcode Version 7.1 (7B91b)
Any ideas why the standard insert button would not be hittable via code but is using the mouse on the simulator?