iOS Segmented control

Hi,

Does anyone know how to check which button is currently selected in a segmented control on iOS?

I’ve tried the properties of the buttons themselves but its been no good.

Thanks

2 Likes

I’m also having trouble with this

Any help on this Segmented control object.? How to find the Selected button ?

Hi all,
I’m also facing the same issue with the segmented control
i have four buttons in the control, and i’m unable to inspect the
Locators for all four buttons (It shows only segmented Control in Inspector)

Did anyone manage to resolve this issue ? I am having the same issue. I have 6 buttons in segmentedControl. Each of them have id. But when I try to access them, it clicks somewhere else. Any help on this would be greatly appreciated.

Can you share the code please?May be you can write a condition to check if the element is visible and then click on it

why just tap will not enough? if tap failed -> not visible :slight_smile: