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 -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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