mardi 28 février 2017

iOS UITests - How to get XCUIElement list which exist in current view

I am required to get a list of XCUIElement which are exist in current view. For example,

let app = XCUIApplication()
let allElements = app.otherElements.allElementsBoundByIndex

returns the full list of xcuielements, but i want to get only the elements that are hittable and exists in current view.

Aucun commentaire:

Enregistrer un commentaire