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

- old
+ new

@@ -38,15 +38,15 @@ end alias uncheck clear end # CheckBox module Container - def checkbox(*args) - CheckBox.new(self, extract_selector(args).merge(tag_name: 'input', type: 'checkbox')) + def checkbox(opts = {}) + CheckBox.new(self, opts.merge(tag_name: 'input', type: 'checkbox')) end - def checkboxes(*args) - CheckBoxCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'checkbox')) + def checkboxes(opts = {}) + CheckBoxCollection.new(self, opts.merge(tag_name: 'input', type: 'checkbox')) end end # Container class CheckBoxCollection < InputCollection end # CheckBoxCollection