title: UI Tests - isSelected is always returning false
body: <p>We have updated out Swift 2.3 project to Swift 3 recently using Xcode 8.2.1 (8C1002), and now most of our UI Tests related with tableViews and the isSelected property aren't working. It's always returning false, even when the object is selected (we can see it in the iOS Simulator).</p>
  
  <p>Has anyone experienced similar issues? Our code used to work normally in Swift 2.3 before the conversion. Here is how we retrieve a tableView cell:</p>
  
  <pre><code>let cell = app.tables.cells.element(at: 4)
  </code></pre>
  
  <p><strong>Note:</strong> <code>app</code> is a XCUIApplication.</p>
  
  <p>And here is how we check if it's selected or not:</p>
  
  <pre><code>XCTAssert(cell.isSelected)
  </code></pre>
  
  <p>Another observation is that we are sure that the object exists because <code>waitForExpectations</code> is returning true:</p>
  
  <pre><code>let existsPredicate = NSPredicate(format: "exists = 1")
  expectation(for: existsPredicate, evaluatedWith: cell, handler: nil)
  waitForExpectations(timeout: 20, handler: nil)
  </code></pre>
  
  <p><strong>EDIT:</strong> In order to replace <code>isSelected</code>, I've tried to use NSPredicate with <code>selected = 1</code> and with <code>isSelected = 1</code>. None worked. I also tried to use <code>acessibilityValue</code> based in other question's answer, however it wasn't that simple since sometimes the items in my table view are selected/unselected programatically. Also, that method involved adding test code to the app, which isn't a good practice.</p>
  
  <p><strong>EDIT AFTER BOUNTY END:</strong> Since no one could find a solution for that problem and that's obviously a bug in Xcode, I've submitted a bug report to Apple. I will comment here when they release an Xcode version with the fix.</p>
  
  <p><strong>EXTRA EDIT:</strong> One day after my last edit, dzoanb came with a functional answer.</p>