title: How to get index of XCUIElement in XCUIElementQuery?
body: <p>This is my simple <code>UITest</code> <em>(customizing order of tabs in tabbarcontroller)</em>:</p>
  
  <pre><code>func testIsOrderOfTabsSaved() {
  
      let app = XCUIApplication()
      let tabBarsQuery = app.tabBars
      tabBarsQuery.buttons["More"].tap()
      app.navigationBars["More"].buttons["Edit"].tap()
      tabBarsQuery.buttons["Takeaway"].swipeLeft()
      tabBarsQuery.buttons["In Restaurant"].swipeLeft()
  
      //here, how to get position of moved button with text "In Restaurant"?
  </code></pre>
  
  <p><strong>NOTE</strong>:</p>
  
  <p>It is possible to get <code>XCUIElement</code> from <code>XCUIElementQuery</code> by index. Can I do this fro the other way?</p>