I have a hidden input field in a form like the one shown
below:
<input id="hidden_input"
type="hidden" name="hidden_input"
value="0" />
In one of my php step functions, I want to set this input
field to be "1". I am using the command below:
$steps->And('I fill in
"1" for "hidden_input"', $world);
However, I am getting the following error message from this line:
Form field with id|name|label|value "hidden_input" not found
I have also tried using
$steps->And('I fill in "hidden_input" with "1"', $world);
But that returns the same error.
However, when I change the input to be type="text" the field is found and changed accordingly. Setting the type to text is the ONLY change I made to the field.
Is there some sort of special syntax for selecting hidden input fields, or is this functionality simply unavailable for hidden input fields?
Thank you in advance for your time.
Sean Dunagan