lib/watir/elements/hidden.rb in watir-6.19.1 vs lib/watir/elements/hidden.rb in watir-7.0.0.beta1

- old
+ new

@@ -8,15 +8,15 @@ raise ObjectDisabledException, 'click is not available on the hidden field element' end end module Container - def hidden(*args) - Hidden.new(self, extract_selector(args).merge(tag_name: 'input', type: 'hidden')) + def hidden(opts = {}) + Hidden.new(self, opts.merge(tag_name: 'input', type: 'hidden')) end - def hiddens(*args) - HiddenCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'hidden')) + def hiddens(opts = {}) + HiddenCollection.new(self, opts.merge(tag_name: 'input', type: 'hidden')) end end # Container class HiddenCollection < InputCollection end # HiddenCollection