title: Xcode UI Testing [xcode7-beta6] - Asserting actual label values when using accessibility labels
body: <p>The question is actually really simple:</p>
  
  <p><strong>Is there a way to assert the displayed value from a specific label (e.g. UILabel) when using an accessibility label on this object?</strong></p>
  
  <p>As far as I see it, all the assertions (e.g. XCTAssertEquals) made in the examples, be it from a <a href="https://developer.apple.com/videos/wwdc/2015/?id=406" rel="noreferrer">WWDC Talk</a> or <a href="http://masilotti.com/ui-testing-xcode-7/" rel="noreferrer">Blogposts</a>, are only checking if an element exists for a query like <code>XCTAssertEquals(app.staticTexts["myValue"].exists, true)</code> or if the number of cells in a table is correct <code>XCTAssertEquals(app.tables.cells.count, 5)</code>. So, when avoiding accessibility labels it's possible to check if an object has a certain value displayed, but not which object / element.
  And when using accessibility labels, it robs me of the opportunity to query against the displayed values, because <code>app.staticTexts["myValue"]</code> will now fail to deliver a result but <code>app.staticTexts["myAccessibilityLabel"]</code> will hit.</p>
  
  <p>Assuming I want to test my "Add new Cell to Table" functionality, I can test that there is really a new cell added to the list, but I have no idea if the new cell is added at the top or the bottom of the list or somewhere in between.</p>
  
  <p>For me, an easy way to check if a specific element has a certain value should be a no-brainer when it comes to UI Testing.</p>
  
  <p>It is possible that due to the missing documentation I might overlook the obvious. If so, just tell me.</p>