XCUIElementTypeQueryProvider provides ready-made queries which return objects of a specific type. But there’s greater control to be had for accessing elements.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/25842120-testing-in-ios/lessons/20