I want to figure out which segment is selected on a segmented control in Xcode's new UI Testing in Swift.
I can get the segmentedControl XCUIElement, and the 'buttons' associated with it, but I'm not sure how to test for the selected property.
Sorry in advance if this is something obvious that I have missed.