I have a simple screen with three switches. I have added the accessibilityindetifier to the the switches and also confirmed that the switch is enabled, hittable,not Selected. But when I get no response when I try to tap() on the element. The steps passes without errors the switch state does not change.
let daSwitch = app.switches["LocationSwitch"]
daSwitch.tap()
I tried doubleTap() and put sleeps between taps as well. The accessibility inspector is able to identify the element as well.
Tap() is working on switches on other screens, but not on this particular screen. I am not sure what could prevent the tap from being recognized/executed.
Any suggestions what could be going on here?
Xcode Version: 14.3 (14E222b)