Using xcode Ui Automation tool for iOS app, I'm trying create a UI test case. But I got into a situation where a toggle button doesn't have any label value. Due to which UI automation tool is failing to find the element and giving an error.
Is there any other way to select the toggle button. Was thinking of tapping based on co-ordinates, but the co-ordinates vary for different devices.
I've searched thoroughly for an answer but couldn't find one.
Can some one please shed light on this please.
Thanks in Advance !!