I'm writing Behat tests for a plugin, and I've come up against a problem I'm not sure how to solve.
The plugin outputs form elements automatically, based on the data entered when the instance was created. So the "id" and "name" attributes are created based on database id's and other real-time generated data.
In the case I am having issues with, there is a series of radio buttons, and one of those has an associated text field. I want to write a test where that button is selected and the text entered into the text field.
The problem I'm having is that I don't know how to identify the input field in the Behat test statements, without knowing what the data id's are. Is there a way to enter text data into a text field based on its position on the page, or some other factor of position?
Thanks ahead of time.
mike