fill_in "user_role", :with => @visitor[:role]
This is checking simple input field but input field with hidden it is not working for that is there any other method for hidden field.
fill_in "user_role", :with => @visitor[:role]
This is checking simple input field but input field with hidden it is not working for that is there any other method for hidden field.
hidden_field = find :xpath, "//input[@id='id_of_hidden_field']"
hidden_field.set "hello world"