title: XCUITest cannot detect the accessibility id of my dynamically generated tableView
body: <p>I am writing  UI tests using XCUIApplication. I am testing for selected Index on a cell row. When I run the tests I am unable to get the text of the selected index. However I am able to click on the selected row but using the static text of the bottom tableView. This happens when there is a tableViewController underneath. I am trying to add a ViewController with a tableView on top of another TableViewController. The tableViewController underneath is generated using storyboard but the above viewController is dynamically generated.</p>
  
  <p>Setup: I am using an xib for the row for the tableView and i am using a custom UITableViewCell with a label and and image. Both Label and image have accessibility turned on but not the cell. I have tried turning on accessibility on the cell and still didn't work. </p>
  
  <p>This is my test</p>
  
  <pre><code>//the BoxListTable is my ViewController that is on top
  // I added the following code in that viewController:
     self.view.isAccessibilityElement = true
     self.view.accessibilityIdentifier = "BoxListTable"
  
  //I also added these for the tableView but it doesn't show up in my tests
     tableView.accessibilityIdentifier = "tableview"
     tableView.isAccessibilityElement = true
  
  //my test is the following
  
   XCUIApplication().tables["BoxListTable"].tap()
  </code></pre>
  
  <p>when I run this test the test click on the full tableView but cannot get any of the static texts. It also cannot get any cells or the tableview. 
      po XCUIApplication.tables["BoxListTable"].cells.count 
      it return 0. 
      //I tried<br>
        XCUIApplication.tables["BoxListTable"].element.children(matching:   .other)<br>
      return 0</p>
  
  <p>Can you please let me know why I cannot see the accessibilityIdentifier even though it is set. </p>