Can XCUITest "see" if a MacOS button is the "default" button.

There doesn't seem to be a way, (from XCUITest), to determine whether a MacOS button is the "default" button.

This is something that you might like to verify to determine that the UI is set up correctly.

...also, the "default" button can be optionally clicked, or the Return key can be typed, so it would be good to know, at a testing level, whether a particular button is considered "default" so that you can test both paths.

Would be great if, in addition to "isHittable", "isEnabled", "isSelected", there was an "isDefault".

I thought that maybe "isSelected" would do the trick, but "isSelected" returns false for a "default" button.

Is there some way that I'm not aware of?

Thanks!