I'm putting together a test suite for an iOS app and I'm having difficulty in setting a specific UISwitch Switch field to having the 'set' or 'on' property. I've tried to record this action through Xamarin Test Recorder which gave me this line:
But unfortunately when I run this command in Xamarin Studio, as part of my Xamarin UI Tests, this command sets another switch field, which is present on the screen, and not the switch field that I am wanting.
The switch field does have a name property of 'swchConfirm', which is indicated in the Storyboard file, but I've tried to find an element with this name the test fails, because Xamarin is unable to locate such an element.
Could someone please tell me if there is a specific way of using this iOS field?
Thanks in advance.