XCUITest: View Element Tree
Published in
1 min readSep 12, 2015
Simple way to view all the elements on the page.
When writing your iOS UI tests, finding elements can sometimes be difficult. To get started try this simple technique.
- Insert a breakpoint in your test.
- Run your test.
- Once the test breaks go to the LLDB console & type:
po XCUIApplication().debugDescription