This is my custom view where "LondonStreet" is a button.

When I click this button, I get the URL and open it in Safari (it works). Then I can return using the "Back to Wishlist" button (it also works).

The problem is that I am trying to verify this in UITests.
itemsTable.cells.elementBoundByIndex(0).buttons["addressButton"].tap()
Along with this line:
app.statusBars.buttons["Back to Wishlist"].tap()
- error:
User Interface Testing Error - Failed to get screenshot for 5 seconds.
And also in the Navigator problem
User Interface Test Error - Unable to quickly update application state.

source share