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

python - pip install -U PySide error -

apache - setting document root in antoher partition on ubuntu -

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