[Automated Testing][Cucumber] Selecting a radio button with duplicate label

Certified Lead Developer

I am using Cucumber for Appian and I have a form with multiple radio buttons with the same label.

Example: A radio button with "Choose option" as a label

Documentation suggests I use: Given I populate field "FIELD_LABEL or [INDEX] or FIELD_LABEL[INDEX]" with "VALUE"

So I tried pretty much all the combinations with no success.

  • Given I populate field "Choose option" with "VALUE" - This selects the 1st occurence of the label
  • Given I populate field "Choose option[2]" with "VALUE" - Where I attempt to populate the 2nd "Choose option" in the form
  • Given I populate field "[22]" with "VALUE" - Where I tried a couple of values for the index which were after the last known field over it in the form

Anyone know how to make this work?

Thanks,

Mat

  Discussion posts and replies are publicly visible