I am testing an android form (xamarin).
My script looks for a radioButton with a label ="Registered"
It finds and performs action on this
However there is another instance of a radioButton labelled "Registered" which is several lines below the 1st instance. The cucumber script is always finding the first one only, therefore the script fails.
I need to perform actions on both buttons not just the first instance.
When I do a query("RadioButton") it returns just the one radio button, as on the form the C# code is simply instantiating another instance of the one radioButton. We do not wish to change the code if need be, so I was wondering is there anyway in Cucumber/Calabash to ignore the 1st instance and perform and action on the second instance? Thank you.