Displaying 1 result from an estimated 1 matches for "field_locator".
2009 Feb 04
2
Can cucumber/webrat set a value on a hidden field
...trdoc.com/brynary/webrat/tree/master/classes/Webrat/Scope.html)
there should be a set_hidden_field method. But the method no longer
appears to be in the webrat/core/scope.rb file
Based on the above documentation the method should be
# File lib/webrat/core/scope.rb, line 53
def set_hidden_field(field_locator, options = {})
field = locate_field(field_locator, HiddenField)
field.set(options[:to])
end
but adding this into the scope.rb file, still gives me
undefined method `set_hidden_field'' for
#<ActionController::Integration::Session:0xb72c191c> (NoMethodError)
when I try...