Thing I want to do
I want to assign a value to the value of the iput tag of the hidden attribute as shown below in SystemSpec.
<input id = "review_rating" type = "hidden" name = "review[rating]">
What I tried
- Set the visible attribute to false.
find('#review_rating', visible:false).set('5')
- Try name attribute instead of id as the first argument
find('input[name="review[rating]"]', visible:false).set('5')
If you write first option , FeatureSepc will pass the test.