class Capybara::RackTest::Node
def set(value, **options)
def set(value, **options) return if disabled? || readonly? warn "Options passed to Node#set but the RackTest driver doesn't support any - ignoring" unless options.empty? if value.is_a?(Array) && !multiple? raise TypeError, "Value cannot be an Array when 'multiple' attribute is not present. Not a #{value.class}" end if radio? then set_radio(value) elsif checkbox? then set_checkbox(value) elsif input_field? then set_input(value) elsif textarea? then native['_capybara_raw_value'] = value.to_s end end