title: XCTest - how to handle scrolling of list
body: <p>I am using xcode 8.3.3, swift, and XCTest.  I am wondering what the best approach to handle scrolling is when you plan to run your tests against multiple simulators and have a list displayed.  Since the screen size may change based on the simulator being used, the element you want to select to scroll up on may or may not be displayed.   </p>
  
  <p>If I have a list with x # of elements, how do I best approach which element to use to scroll the list up to have the next set of elements displayed on the screen so that the tests will run on multiple simulators of different screen sizes?  </p>
  
  <p>When we do "po XCUIApplication()" we see all the elements in the list, so in order to know which one is the last one displayed on the screen, we would have to look through each element and do a checked like isDisplayed or something to find the last element currently displayed ... but I was hoping there is a better approach? </p>