xcode - Identify Selected State Swift UI Tests -


i want figure out segment selected on segmented control in xcode's new ui testing in swift.

i can segmentedcontrol xcuielement, , 'buttons' associated it, i'm not sure how test selected property.

sorry in advance if obvious have missed.

xcuielement has selected property can examine:

xctasserttrue(app.segmentedcontrols.buttons.elementboundbyindex(0).selected)


Comments

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -