title: How to access a right item button on navigation bar in XCUITest?
body: <p>I am writing UITest cases for my iOS Swift app. In the app I have created a custom right item button on the navigation bar in this way:</p>
  
  <pre><code>let barButtonItem = UIBarButtonItem(customView: customView)
  navigationItem.rightBarButtonItem = barButtonItem
  </code></pre>
  
  <p>Now I don't know how to access this custom right item button in XCUITest and really need some help. Thanks in advance.</p>