title: iOS UI Test: How to get a list of element
body: <p>I'm testing on iOS with XCUITest, in a search test case, I'd like to verify that all search suggestions begins with the letter a user enter, say if I enter "p", search suggestion should have "ps4", "phone", "ps3" etc.</p>
  
  <p>By looking around I feel like most element query methods will try to return a single element,
  eg:
       <code>let predicate = NSPredicate(format: "label BEGINSWITH[cd] 'p'")</code>
       <code>app.buttons.elementMatchingPredicate(predicate)</code></p>
  
  <p>while in some cases, a list of elements matching the same condition can also be important, is there any way to achieve this? </p>