background:
i'm experimenting ui level testing in ios 9.0 xcode gm.
question:
is there command in xcode gm allow see 'tree' of accessible elements , relationships? similar 'page' command in appium?
ideally able run command in debugger give me list of elements available selection/manipulation. can use debugdescription on single xcuielement gives info element.
this isn't you're asking for, xcode’s accessibility inspector makes easier @ view hierarchy in terms of elements accessible via identifiers. (n.b. it's not "label" in ib's accessibility panel matters, it's "identifier" field.):
in xcode 7.2, open xcode->open developer tool->accessibility inspector. (you may need give app permission run in system preferences.) launch ios app xcode , hover on ui element in simulator. you’ll see comprehensive information element type, description, hierarchy, etc.
anytime record ui actions , output doesn't right, use tool figure out accessibility descriptions need added, changed, or removed. (i spent couple days trying embedded uisegmentedcontrol change via ui test harness, , problem became obvious once figured out how use accessibility inspector tool.)
thanks folks @ shinobicontrols.com great tip!
Comments
Post a Comment