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
Post a Comment