XCUITest: View Element Tree

Mos6y
Testing with Xcode
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.

  1. Insert a breakpoint in your test.
  2. Run your test.
  3. Once the test breaks go to the LLDB console & type:
po XCUIApplication().debugDescription

--

--

Mos6y
Testing with Xcode

Lead iOS Software Engineer at a fortune 100 sneaker company.